From 331fc99454127945260d230b676267e9c87cf56e Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Tue, 7 Jul 2020 14:06:41 -0400 Subject: [PATCH] Fix error code in auth check --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index b5579b59e9..45fe58253e 100644 --- a/src/api.ts +++ b/src/api.ts @@ -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 {