We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00241f7 commit 760c134Copy full SHA for 760c134
app/routes/_index.tsx
@@ -5,9 +5,10 @@ export default function Page() {
5
const navigate = useNavigate();
6
const anonymousLoginAndStart = async () => {
7
const user = await authClient.getSession();
8
- if (!user.data) {
9
- const _user = await authClient.signIn.anonymous();
+ if (user.data) {
+ const _user = await authClient.signOut();
10
}
11
+ const _user = await authClient.signIn.anonymous();
12
navigate("/play");
13
};
14
return (
0 commit comments