Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Firebase Auth: Phone number validation fail with E.164 valid number

Aperta
#2,770 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Xiaoshouzi-gh ci sta già lavorando.

Dal 20/11/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

api: auth
[READ] Step 1: Are you in the right place?
  • For issues related to the code in this repository file a Github issue.
  • If the issue pertains to Cloud Firestore, read the instructions in the "Firestore issue"
    template.
  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.
[REQUIRED] Step 2: Describe your environment
  • Operating System version: all
  • Firebase SDK version: 11.5.0
  • Firebase Product: auth
  • Node.js version: 20
  • NPM version: 10.7.0
[REQUIRED] Step 3: Describe the problem

When we want to create a user or edit an existing user's phone number, there response is:
{
"code": "auth/invalid-phone-number",
"message": "TOO_SHORT"
}
if we use this phone number: +60 6-850 5555

Steps to reproduce:

Just try to create a user with that particular number or update an existing one's phone number.

Relevant Code:
// TODO(you): code here to reproduce the problem

const admin = require('firebase-admin');
admin.initializeApp({
credential: admin.credential.applicationDefault() // Or use admin.credential.cert with a path to your service account key
});
const auth = admin.auth();
try {
const userRecord = await admin.auth().createUser({
phoneNumber: "+6068502555",
});
console.log("Successfully created new user:", userRecord.uid);
} catch (error) {
console.error("Error creating new user:", error);
}

Lingua principale
TypeScript
Stelle
1.7k
Fork
419
Merge medio
4g 20h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di firebase/firebase-admin-node

Tutte le issue di firebase/firebase-admin-node

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.