Firebase Auth: Phone number validation fail with E.164 valid number
メンテナーはふだん 1 日以内に返信
@Xiaoshouzi-gh がすでに取り組んでいます。
2024年11月20日 から。
評価
この issue はまだ評価されていません。
説明
[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);
}
- 主要言語
- TypeScript
- スター
- 1.7k
- フォーク
- 419
- 平均マージ
- 4日 20時間
- マージ済み PR(30日)
- 16
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/firebase-admin-node のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
firebase/firebase-admin-node#3234 ·
メンテナーはふだん 1 日以内に返信
-
[email protected] stable dependency tree fails npm audit via Storage uuid and Firestore google-gax対応中かも @lahirumaramba が 17 日前に担当しました。 オープン
firebase/firebase-admin-node#3221 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
api: messaging
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
firebase/firebase-admin-node#3215 ·
メンテナーはふだん 1 日以内に返信
-
api: messaging
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
firebase/firebase-admin-node#3214 ·
メンテナーはふだん 1 日以内に返信
-
[Firestore] Re-export functions from '@google-cloud/firestore/pipelines'再び着手できるかも @jonathanedey が 87 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンapi: firestore type: feature request
firebase/firebase-admin-node#3183 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
firebase/firebase-admin-node の issue をすべて見る
似ている issue
-
ADD openalgoオープンtemplate
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
bug Needs: Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
microsoft/fluentui-contrib#671 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sveltejs/acorn-typescript#150 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100