useSignInSmsPasswordless to sign in a user with a one-time password sent via SMS to a phone.
- The
signInSmsPasswordlessaction sends a one-time password to the given phone number. - The client is then awaiting the OTP.
needsOtpequals true. - After the code is received by SMS, the client sends the code with
sendOtp. On success, the client is authenticated, andisSuccessequalstrue.
isError and error. While the signInSmsPasswordless and sendOtp actions are running, isLoading equals true.
Parameters
stateOptions optional
PasswordlessOptions