Skip to content

Commit

Permalink
Fix unauthorized login redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Dec 7, 2023
1 parent 983eb6d commit fd77aad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ const call = createFetch({
data.detail?.message || 'Please re-connect with Google',
url,
);
} else if (error.statusCode === 401) {
} else if (response.status === 401) {
// Clear current user data, and ship them to the login screen!
await currentUser.reset();
router.push('/login');
await router.push('/login');
return;
}
// Pass the error along
Expand Down

0 comments on commit fd77aad

Please sign in to comment.