Skip to content

Commit

Permalink
fix(@aws-amplify/auth): NotAuthorizedException (aws-amplify#4281)
Browse files Browse the repository at this point in the history
  • Loading branch information
thundermiracle authored and ericclemmons committed Oct 31, 2019
1 parent f9e7b1b commit 023f496
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/auth/src/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,8 @@ export default class AuthClass {
// Make sure the user is still valid
if (
err.message === 'User is disabled' ||
err.message === 'User does not exist.'
err.message === 'User does not exist.' ||
err.message === 'Access Token has been revoked' // Session revoked by another app
) {
rej(err);
} else {
Expand Down

0 comments on commit 023f496

Please sign in to comment.