Skip to content

Commit

Permalink
fix(in-app): lost login status
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Dec 12, 2023
1 parent 0799cb2 commit 025425a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion in-app/v1/src/auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ export function useAutoLogin({ strategies }: UseAuthLoginOptions) {
loginPromise
.then((user) => {
setAuth({ user });
loginPromise = undefined;
if (!user) {
loginPromise = undefined;
}
})
.catch((error) => setAuth({ error }));
}, []);
Expand Down

0 comments on commit 025425a

Please sign in to comment.