This commit is contained in:
M66B 2022-05-18 10:13:09 +02:00
parent a73e65784d
commit 25c1fba61f
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class ServiceAuthenticator extends Authenticator {
}
String refreshToken(boolean expire) throws AuthenticatorException, OperationCanceledException, IOException, JSONException, MessagingException {
if (auth == AUTH_TYPE_GMAIL && provider != null) {
if (auth == AUTH_TYPE_GMAIL) {
GmailState authState = GmailState.jsonDeserialize(password);
authState.refresh(context, user, expire, keep_alive);
Long expiration = authState.getAccessTokenExpirationTime();