Skip to content

Commit

Permalink
fix auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanMarmelab committed Mar 25, 2024
1 parent 3dc786f commit bb8ddcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-directus/src/directusAuthProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const directusAuthProvider = (
}
},
checkError: error => {
const status = error.status;
const status = error?.status;
if (status === 401 || status === 403) {
return Promise.reject();
}
Expand Down

0 comments on commit bb8ddcc

Please sign in to comment.