Use the hook useSignInSmsPasswordless
to sign in a user with a one-time password sent via SMS to a phone.
signInSmsPasswordless
action sends a one-time password to the given phone number.needsOtp
equals true.sendOtp
. On success, the client is authenticated, and isSuccess
equals true
.Any error is monitored through isError
and error
. While the signInSmsPasswordless
and sendOtp
actions are running, isLoading
equals true
.
stateOptions optional PasswordlessOptions
Use the hook useSignInSmsPasswordless
to sign in a user with a one-time password sent via SMS to a phone.
signInSmsPasswordless
action sends a one-time password to the given phone number.needsOtp
equals true.sendOtp
. On success, the client is authenticated, and isSuccess
equals true
.Any error is monitored through isError
and error
. While the signInSmsPasswordless
and sendOtp
actions are running, isLoading
equals true
.
stateOptions optional PasswordlessOptions