SupabaseS
Supabase4y ago
jyn

Store email for user that signs up with phone number

Hi king
  • First of all I love supabase. Fantastic product.
s it possible to store a user's email during the sign up process if they elect to receive an authentication code to their phone instead of email?
More info:
I have a sign up view that collects phone, email, and password from the user. I call auth.signUp(), passing in a phone number + password to send user an authentication code to their phone. User email is collected by the front end, but I see no way to update auth.users with the recently signed up user's email.Possibly auth.updateUser() could be called to update their email address, but this bug has been posted on github regarding updating an email address before an existing one for the given row appears in auth.users -- https://github.com/supabase/supabase/discussions/5037

Preemptive thank you to any genius that can point me in the right direction.
GitHub
Hi everyone, I am trying to implement email or phone signin, but having a problem with email confimation not work, here is the step to reproduce the problem: Sign up with phone auth Verify OTP from...
Was this page helpful?