Fix error code in auth check

This commit is contained in:
rijkvanzanten
2020-07-07 14:06:41 -04:00
parent 78b5723526
commit 331fc99454

View File

@@ -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 {