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);

View File

@ -24,7 +24,7 @@
askAccount="true"
authorizationEndpoint="https://accounts.google.com/o/oauth2/auth"
clientId="803253368361-11ias0ee6bqhvdi4f21fs1lh7fsb0il2.apps.googleusercontent.com"
enabled="false"
enabled="true"
privacy="https://policies.google.com/privacy"
prompt="consent"
redirectUri="eu.faircode.email:/"