Handle google token expiration via password reset as first class auth-error

This commit is contained in:
Ben Gotow 2020-05-03 18:07:23 -05:00
parent e0f2a98e8e
commit d552da2582

View file

@ -312,6 +312,7 @@ export default class MailsyncBridge {
const isAuthFailure =
`${error}`.includes('Response Code: 401') || // mailspring services
`${error}`.includes('Response Code: 403') || // mailspring services
`${error}`.includes('invalid_grant') || // Google
`${error}`.includes('ErrorAuthentication'); // mailcore
if (this._crashTracker.tooManyFailures(fullAccountJSON)) {