Skip to content

Commit

Permalink
fix: signOut should ignore 403s
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay committed May 1, 2024
1 parent f2fc6f1 commit 37a00c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/GoTrueClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,12 @@ export default class GoTrueClient {
if (error) {
// ignore 404s since user might not exist anymore
// ignore 401s since an invalid or expired JWT should sign out the current session
if (!(isAuthApiError(error) && (error.status === 404 || error.status === 401))) {
if (
!(
isAuthApiError(error) &&
(error.status === 404 || error.status === 401 || error.status === 403)
)
) {
return { error }
}
}
Expand Down

0 comments on commit 37a00c6

Please sign in to comment.