From 4529a2a93c17c0d34424cdf9a55fc9465a70cece Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 10 Sep 2023 15:54:31 +0800 Subject: [PATCH] fix: fix auto login invalid token problem --- src/client/components/TokenLoginContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/components/TokenLoginContainer.tsx b/src/client/components/TokenLoginContainer.tsx index 0a91d9c..0dd2187 100644 --- a/src/client/components/TokenLoginContainer.tsx +++ b/src/client/components/TokenLoginContainer.tsx @@ -10,7 +10,7 @@ export const TokenLoginContainer: React.FC = useEffect(() => { const token = getJWT(); if (token) { - loginWithToken().then(() => { + loginWithToken().finally(() => { setLoading(false); }); } else {