firebase / firebase/firebase-admin-node

[firebase/auth] Auth action links ignore linkDomain param

Đang mở
#2,887 3 bình luận 1 reaction 0 người được giao Xem trên GitHub
api: auth
Ngôn ngữ chính
TypeScript
Star
1.7k
Fork
419
Merge trung bình
3 ngày 10 giờ
Pull request đã merge (30 ngày)
16

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:

```javascript
var actionCodeSettings = {
url: `${appDomain}/mobile/emailLinkSignIn`,
handleCodeInApp: false,
linkDomain: '.firebaseapp.com, // Other Hosting site: Does not work, uses default instead
// linkDomain: ', // Custom domain registered in Hosting: Does not work, uses default instead
};

const signInWithEmailLink = await admin.auth.generateSignInWithEmailLink(email, actionCodeSettings);

console.log(signInWithEmailLink) // Returns "https://.firebaseapp.com/__/auth/action?..."
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.