Skip to content

Commit 952e491

Browse files
committed
huh
1 parent 3ff1783 commit 952e491

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

web/src/components/login.tsx

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export function LoginComponent({
3535
provider,
3636
options: {
3737
redirectTo: redirectTo
38-
? `${location.origin}/auth/callback/${encodeURIComponent(redirectTo)}`
39-
: `${location.origin}/auth/callback`,
38+
? `https://openbin.ethn.sh/auth/callback/${encodeURIComponent(redirectTo)}`
39+
: `https://openbin.ethn.sh/auth/callback`,
4040
},
4141
});
4242

@@ -45,26 +45,6 @@ export function LoginComponent({
4545
}
4646
}
4747

48-
async function handleEmailLogin() {
49-
if (beforeLogin) beforeLogin();
50-
setLoading(true);
51-
const { error } = await supabase.auth
52-
.signInWithOtp({
53-
email,
54-
options: {
55-
emailRedirectTo: redirectTo
56-
? `${location.origin}/auth/callback/${encodeURIComponent(
57-
redirectTo,
58-
)}`
59-
: `${location.origin}/auth/callback`,
60-
},
61-
})
62-
.then((res) => {
63-
setLoading(false);
64-
setCheckEmail(true);
65-
return res;
66-
});
67-
}
6848

6949
return (
7050
<div className="mx-auto w-full space-y-2">

0 commit comments

Comments
 (0)