Skip to content

Commit

Permalink
fix: πŸ› Recover from revoked app access. (user was stuck on /init before)
Browse files Browse the repository at this point in the history
Fixes #87
  • Loading branch information
EricLambrecht committed Oct 25, 2019
1 parent 17b52b7 commit 57efbd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/store/user/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export default {
throw error
}

if (result.status === 401) {
const error = new Error('Invalid grant / Unauthorized')
error.trigger_login = true
throw error
}

const tokenData = await result.json()

if (!tokenData.error) {
Expand Down

0 comments on commit 57efbd4

Please sign in to comment.