Skip to content

Commit

Permalink
Merge pull request #169 from lashchenko/REUSE-ACCESS-TOKEN
Browse files Browse the repository at this point in the history
Reuse access token
  • Loading branch information
xinyuwen2 committed Dec 4, 2023
2 parents 18a273e + db031bf commit 7a9739d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ protected OAuthWithAuthorizationCode(String clientId, String clientSecret, URL r
this(clientId, clientSecret, redirectionUri, env, oAuthScope);
if(oauthTokens == null || oauthTokens.getRefreshToken() == null) {
throw new NullPointerException("OAuth tokens must not be null");
}
oAuthTokens = new OAuthTokens(null, 0, oauthTokens.getRefreshToken());
}

oAuthTokens = new OAuthTokens(oauthTokens.getAccessToken(), oauthTokens.getAccessTokenExpiresInSeconds(), oauthTokens.getRefreshToken());
}

protected OAuthWithAuthorizationCode(String clientId, String clientSecret, URL redirectionUri, ApiEnvironment env, OAuthScope oAuthScope) {
Expand Down

0 comments on commit 7a9739d

Please sign in to comment.