supabase-js icon indicating copy to clipboard operation
supabase-js copied to clipboard

Phone Number Not Stored During Signup When Email Confirmation Enabled

Open chatdmc opened this issue 1 year ago • 1 comments

When both email and phone number are provided during user signup, and:

  • Email confirmation is enabled
  • Phone confirmation is disabled

The phone number is incorrectly stored as null in the database. However, the same phone number can be successfully stored when using the updateUser method.

Signup function image

value of formData.adminMobile: +919996381211

Update user function image

value of formData.adminMobile: +919996381211

But in case of update it got updated in auth.users table

Steps to Reproduce

  1. Configure system with:
    • Email confirmation: enabled
    • Phone confirmation: disabled
  2. Attempt to create a new user with both email and phone number
  3. Check the stored user data in the database
  4. Attempt to update the same user with a phone number using updateUser

Current Behavior

  • During signup: Phone number is stored as null
  • During update: Phone number is stored correctly

Expected Behavior

Phone number should be stored correctly in both scenarios:

  • During initial user signup
  • During user update

Labels

  • bug
  • authentication
  • user-management

chatdmc avatar Nov 07 '24 12:11 chatdmc