firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

Cannot creating users with phone numbers in E.164 format from some countries

Open rm116 opened this issue 2 years ago • 0 comments

[REQUIRED] Step 2: Describe your environment

  • Operating System version: Windows 10
  • Firebase SDK version: 11.5.0
  • Firebase Product: auth
  • Node.js version: v16.15.0
  • NPM version: 8.5.5

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

I am writing to report an issue I am experiencing while attempting to create users with phone numbers in E.164 format from countries like Belgium and Ireland. When I try to create a user with a phone number in E.164 format, I receive an error message that prevents the user from being created.

Belgium number : +3227933835 Ireland number : +35315530073

Reference of valid E.164 format of this countries : https://newvoicemedia.atlassian.net/wiki/spaces/DP/pages/125468684/E.164+format

I always get the error message :

{
        "code": "auth/invalid-phone-number",
        "message": "TOO_SHORT"
}

Relevant Code:

admin.auth().createUser(body)

rm116 avatar May 04 '23 07:05 rm116