Firebase Auth: Phone number validation fail with E.164 valid number
Maintainer thường phản hồi trong vòng 1 ngày
@Xiaoshouzi-gh đang làm issue này rồi.
Từ ngày 20/11/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
[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);
}
- Ngôn ngữ chính
- TypeScript
- Star
- 1.7k
- Fork
- 419
- Merge trung bình
- 4 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của firebase/firebase-admin-node
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
firebase/firebase-admin-node#3234 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[email protected] stable dependency tree fails npm audit via Storage uuid and Firestore google-gaxCó thể đã có người làm @lahirumaramba đã nhận 18 ngày trước. Đang mở
firebase/firebase-admin-node#3221 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: messaging
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
firebase/firebase-admin-node#3215 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
api: messaging
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
firebase/firebase-admin-node#3214 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Firestore] Re-export functions from '@google-cloud/firestore/pipelines'Có thể làm lại được @jonathanedey đã nhận 88 ngày trước và không có pull request nào đang mở. Đang mởapi: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của firebase/firebase-admin-node
Issue tương tự
-
docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
remix-run/react-router#15558 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
solana-foundation/pay-kit#341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
supabase/agent-skills#607 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày