Hello team, I have an issue hope get your help: Im...
# off-topic
c
Hello team, I have an issue hope get your help: Im using signup with phone and password successfully. But when I try using signin method with phone and pasword it throw an error “unsupported email provider”
s
I believe the phone auth uses passwordless login - i.e. the user receives an SMS with their code, instead of using a password. What happens if you try to sign in without a password?
c
I understand this approach. Im handle login with sms code now, but I think in the signup, we must provided the password, and it dont have any value in the auth flow
h
Hi @User if you want passwordless, you should use
Copy code
await supabase.auth.signIn({
  phone: '+1222333444'
})
There's no signUp api for passwordless
--- The signUp you are talking about is for password auth flow, but instead of email, users can use their phone number.
if you want to signIn with phone and password, you have to provide
phone
and
password
params for the SignIn method. code ref: https://github.com/supabase/gotrue-js/blob/75060928d89ba9368fcc513aa8c264263808d142/src/GoTrueClient.ts#L174-L191