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(() => {
|
useEffect(() => {
|
||||||
const token = getJWT();
|
const token = getJWT();
|
||||||
if (token) {
|
if (token) {
|
||||||
loginWithToken().then(() => {
|
loginWithToken().finally(() => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user