Skip to content

Phone Number Not Stored During Signup When Email Confirmation Enabled #1694

@chatdmc

Description

@chatdmc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    auth-jsRelated to the auth-js library.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions