useLoginWithSms
hook.sendCode
method requires a phoneNumber
string param that must follow these formatting conventions:(+)1
to the phone number will still be read as a US phone number.+${countryCode}
to the beginning of the input value.+
that denotes a custom country code.state
variable returned by the
useLoginWithSms
hook.useLoginWithSms
hook to run custom logic after a successful login or to handle errors that occur during the flow.onComplete
onError