File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed
Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff 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" >
You can’t perform that action at this time.
0 commit comments