[firebase/auth] Auth action links ignore linkDomain param
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- nodejs, typescript
- Lĩnh vực
- authentication
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện hành vi với admin.auth.generateSignInWithEmailLink và các phương thức khác liên quan đến actionLink bằng actionCodeSettings được cung cấp. Theo dõi yêu cầu đến Identity Toolkit API và xác định xem linkDomain bị SDK loại bỏ hay bị API bỏ qua; hoàn thành khi liên kết được tạo sử dụng miền hosting hoặc miền tùy chỉnh được yêu cầu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe your environment
- Operating System version: macOS Sequoia
- Firebase SDK version: 13.1.0
- Firebase Product: auth
- Node.js version: v22.14.0
- NPM version: v10.9.2
Describe the problem
Steps to reproduce:
Whenever we make a call to admin.auth.generateSignInWithEmailLink or any other actionLink-related method, the linkDomain is ignored and the firebase project default url is used instead.
The firebase-admin SDK calls the Identity Toolkit API, which is the actor that is probably ignoring the linkDomain param.
Relevant Code:
var actionCodeSettings = {
url: `${appDomain}/mobile/emailLinkSignIn`,
handleCodeInApp: false,
linkDomain: '<other-site>.firebaseapp.com, // Other Hosting site: Does not work, uses default instead
// linkDomain: '<custom-domain>, // Custom domain registered in Hosting: Does not work, uses default instead
};
const signInWithEmailLink = await admin.auth.generateSignInWithEmailLink(email, actionCodeSettings);
console.log(signInWithEmailLink) // Returns "https://<project-id>.firebaseapp.com/__/auth/action?..."
- 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
Hướng dẫn đóng góp
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 ·
-
firebase/firebase-admin-node#3221 · 3 bình luận · 1 người được giao ·
-
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 ·
-
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 ·
-
api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 bình luận · 1 người được giao ·
Tất cả issue của firebase/firebase-admin-node
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
TanStack/tanstack.com#1293 ·