From d552da258299708e518478510df2a9334907b02e Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Sun, 3 May 2020 18:07:23 -0500 Subject: [PATCH] Handle google token expiration via password reset as first class auth-error --- app/src/flux/mailsync-bridge.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/flux/mailsync-bridge.ts b/app/src/flux/mailsync-bridge.ts index 5bc280d8a..953bb06a5 100644 --- a/app/src/flux/mailsync-bridge.ts +++ b/app/src/flux/mailsync-bridge.ts @@ -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)) {