mirror of
https://github.com/directus/directus.git
synced 2026-01-30 07:58:15 -05:00
Fix error code in auth check
This commit is contained in:
@@ -53,7 +53,7 @@ export const onError = async (error: RequestError) => {
|
||||
/* istanbul ignore next */
|
||||
const code = error.response?.data?.error?.code;
|
||||
|
||||
if (status === 401 && code === 'INVALID_USER_CREDENTIALS') {
|
||||
if (status === 401 && code === 'INVALID_CREDENTIALS') {
|
||||
try {
|
||||
await refresh();
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user