Skip to content

Commit

Permalink
handle 403 response from the server for users
Browse files Browse the repository at this point in the history
  • Loading branch information
emallson committed May 3, 2024
1 parent 748d877 commit e07f419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface/reducers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const fetchUser = createAsyncThunk<User | null>('user/fetchUser', async (
});

if (response.status !== 200) {
if (response.status === 401) {
if (response.status === 401 || response.status === 403) {
// Unauthorized
// We need to store this explicitely so we know the diff between "unknown" and "logged out"
return false;
Expand Down

0 comments on commit e07f419

Please sign in to comment.