firebase / firebase/firebase-admin-node

[firebase/auth] Auth action links ignore linkDomain param

オープン
#2,887 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
api: auth
主要言語
TypeScript
スター
1.7k
フォーク
419
平均マージ
3日 10時間
マージ済み PR(30日)
16

説明

### 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?..."
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start by reproducing the behavior with admin.auth.generateSignInWithEmailLink and the other actionLink-related methods using the provided actionCodeSettings. Trace the request to the Identity Toolkit API and determine whether linkDomain is dropped by the SDK or ignored by the API; done means the generated link uses the requested hosting or custom domain.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
nodejs, typescript
領域
authentication
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。