mirror of https://github.com/M66B/FairEmail.git
Enabled Gmail web OAuth flow again
This commit is contained in:
parent
e17b1fd28f
commit
f9a02cdcfa
|
@ -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);
|
||||
|
|
|
@ -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:/"
|
||||
|
|
Loading…
Reference in New Issue