Force expire tokens if requested

pull/200/head
M66B 3 years ago
parent e49321af2c
commit 8ce7279076

@ -102,6 +102,8 @@ public class ServiceAuthenticator extends Authenticator {
return authState.getAccessToken();
} else if (auth == AUTH_TYPE_OAUTH) {
AuthState authState = AuthState.jsonDeserialize(password);
if (expire)
authState.setNeedsTokenRefresh(true);
OAuthRefresh(context, provider, authState);
Long expiration = authState.getAccessTokenExpirationTime();
if (expiration != null)

Loading…
Cancel
Save