fix: fix auto login invalid token problem
This commit is contained in:
parent
066c9e8895
commit
4529a2a93c
@ -10,7 +10,7 @@ export const TokenLoginContainer: React.FC<React.PropsWithChildren> =
|
||||
useEffect(() => {
|
||||
const token = getJWT();
|
||||
if (token) {
|
||||
loginWithToken().then(() => {
|
||||
loginWithToken().finally(() => {
|
||||
setLoading(false);
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user