mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Improved error message
This commit is contained in:
parent
2139aee208
commit
3b2805715f
2 changed files with 3 additions and 10 deletions
2
FAQ.md
2
FAQ.md
|
@ -576,7 +576,7 @@ After enabling two factor authentication there will be this error message:
|
|||
|
||||
*[ALERT] Application-specific password required: https://support.google.com/mail/accounts/answer/185833 (Failure)*
|
||||
|
||||
The error message "*Authentication failed - Invalid credentials*" means that the Android account manager was not able to refresh the access token.
|
||||
The error message "*Authentication failed - Invalid credentials*" or *Token refresh required* means that the Android account manager was not able to refresh the access token.
|
||||
A common cause for this problem is using a VPN, a firewall app or an ad blocker which blocks internet access for the Android account manager.
|
||||
You can workaround this issue by using an app password.
|
||||
Please [see here](#user-content-howto) about how you can delete the account configured with the quick setup wizard.
|
||||
|
|
|
@ -136,15 +136,8 @@ public class ServiceAuthenticator extends Authenticator {
|
|||
Log.e(ex);
|
||||
}
|
||||
|
||||
if (expiration != null && expiration - keep_alive < new Date().getTime()) {
|
||||
try {
|
||||
refreshToken(true);
|
||||
} catch (Throwable ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
|
||||
throw new IllegalStateException("Token refreshed");
|
||||
}
|
||||
if (expiration != null && expiration - keep_alive < new Date().getTime())
|
||||
throw new IllegalStateException("Token refresh required. Is there a VPN based app running?");
|
||||
}
|
||||
|
||||
interface IAuthenticated {
|
||||
|
|
Loading…
Reference in a new issue