fix: fix auto login invalid token problem

This commit is contained in:
moonrailgun 2023-09-10 15:54:31 +08:00
parent 066c9e8895
commit 4529a2a93c

View File

@ -10,7 +10,7 @@ export const TokenLoginContainer: React.FC<React.PropsWithChildren> =
useEffect(() => {
const token = getJWT();
if (token) {
loginWithToken().then(() => {
loginWithToken().finally(() => {
setLoading(false);
});
} else {