Skip to content

Commit

Permalink
LPD-34740 Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Sep 19, 2024
1 parent d3d5ce8 commit 975aeee
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ public JSONObject deployApp(
}

public String getAuthorization() throws Exception {
if ((_accessToken != null) &&
if ((_authorization != null) &&
(System.currentTimeMillis() < (_tokenExpirationMillis - 30000))) {

return _accessToken;
return _authorization;
}

String json = post(
Expand All @@ -83,11 +83,11 @@ public String getAuthorization() throws Exception {
"token"
);

_accessToken = "Bearer " + token;
_authorization = "Bearer " + token;

_tokenExpirationMillis = System.currentTimeMillis() + 900000;

return _accessToken;
return _authorization;
}

public String getProjectsUsage(String userEmail) throws Exception {
Expand Down Expand Up @@ -218,7 +218,7 @@ private JSONObject _postProject(String projectId) throws Exception {

private static final Log _log = LogFactory.getLog(ConsoleService.class);

private String _accessToken;
private String _authorization;

@Value("${liferay.marketplace.console.auth.email.address}")
private String _consoleAuthEmailAddress;
Expand Down

0 comments on commit 975aeee

Please sign in to comment.