File tree Expand file tree Collapse file tree
app/(with-contexts)/(with-layout)/login
components/public/payments Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ export default function LoginForm({ redirectTo }: { redirectTo?: string }) {
118118 e . preventDefault ( ) ;
119119 try {
120120 setLoading ( true ) ;
121- const { data , error } = await authClient . signIn . emailOtp ( {
121+ const { error } = await authClient . signIn . emailOtp ( {
122122 email : email . trim ( ) . toLowerCase ( ) ,
123123 otp : code ,
124124 } ) ;
@@ -163,11 +163,10 @@ export default function LoginForm({ redirectTo }: { redirectTo?: string }) {
163163 }
164164
165165 try {
166- const { data, error } =
167- await authClient . emailOtp . sendVerificationOtp ( {
168- email : email . trim ( ) . toLowerCase ( ) ,
169- type : "sign-in" ,
170- } ) ;
166+ const { error } = await authClient . emailOtp . sendVerificationOtp ( {
167+ email : email . trim ( ) . toLowerCase ( ) ,
168+ type : "sign-in" ,
169+ } ) ;
171170
172171 if ( error ) {
173172 setError ( error . message as any ) ;
Original file line number Diff line number Diff line change @@ -85,11 +85,10 @@ export function LoginForm({ onLoginComplete }: LoginFormProps) {
8585 const requestCode = async function ( email : string ) {
8686 try {
8787 setLoading ( true ) ;
88- const { data, error } =
89- await authClient . emailOtp . sendVerificationOtp ( {
90- email : email . trim ( ) . toLowerCase ( ) ,
91- type : "sign-in" ,
92- } ) ;
88+ const { error } = await authClient . emailOtp . sendVerificationOtp ( {
89+ email : email . trim ( ) . toLowerCase ( ) ,
90+ type : "sign-in" ,
91+ } ) ;
9392 if ( error ) {
9493 toast ( {
9594 title : TOAST_TITLE_ERROR ,
You can’t perform that action at this time.
0 commit comments