Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[firebase/auth] Auth action links ignore linkDomain param

Open
#2,887 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
nodejs, typescript

Research direction

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.

Written by the indexing model from the issue text.

Description

api: auth
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?..."
Dominant language
TypeScript
Stars
1.7k
Forks
419
Avg merge
4d 20h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-node

All issues in firebase/firebase-admin-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.