mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 15:17:03 +02:00
Enabled Gmail web OAuth flow again
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user