Enabled Gmail web OAuth flow again

This commit is contained in:
M66B
2022-07-21 09:55:33 +02:00
parent e17b1fd28f
commit f9a02cdcfa
2 changed files with 1 additions and 4 deletions

View File

@@ -145,9 +145,6 @@ public class ServiceAuthenticator extends Authenticator {
private static void OAuthRefresh(Context context, String id, String user, AuthState authState, boolean forceRefresh)
throws MessagingException {
try {
if ("gmail".equals(id) && !BuildConfig.DEBUG)
return;
long now = new Date().getTime();
Long expiration = authState.getAccessTokenExpirationTime();
boolean needsRefresh = (expiration != null && expiration < now);