You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to register a user using both email and phone authentication in Flutter app with Supabase, but encountering the following error:
149 - assert((email != null && phone == null) || (email == null && phone != null),
150 - 'You must provide either an email or phone number');
This error arises because Supabase currently enforces a condition where only one of either email or phone is provided for user signup. However, I want to allow both email and phone parameters to be provided simultaneously, as it would make verification easier before future authentications.
Is there a way to modify or extend the logic in Supabase to support both email and phone authentication providers during signup? and their provider must be working on login seprately.
pos: I am using twilio provider for phone
The text was updated successfully, but these errors were encountered:
This error arises because Supabase currently enforces a condition where only one of either email or phone is provided for user signup. However, I want to allow both email and phone parameters to be provided simultaneously, as it would make verification easier before future authentications.
Hey!
Thanks for the query, unfortunately this is right - we only allow signup with one method at a time (e.g. signUp({phone, password}) or signUp({email,password}) You can create an account with email and add a phone number via updateUser though or vice versa.
and their provider must be working on login seprately.
To clarify, is the team hoping to have two separate accounts? (e.g. email would be one account, and phone on another). For that scenario it's possible to call sign up twice (first with phone, second with email) and there should be two separate accounts.
I am trying to register a user using both email and phone authentication in Flutter app with Supabase, but encountering the following error:
149 - assert((email != null && phone == null) || (email == null && phone != null),
150 - 'You must provide either an email or phone number');
This error arises because Supabase currently enforces a condition where only one of either email or phone is provided for user signup. However, I want to allow both email and phone parameters to be provided simultaneously, as it would make verification easier before future authentications.
Is there a way to modify or extend the logic in Supabase to support both email and phone authentication providers during signup? and their provider must be working on login seprately.
pos: I am using twilio provider for phone
The text was updated successfully, but these errors were encountered: