[firebase/auth] Auth action links ignore linkDomain param
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
- Domain
- authentication
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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/firebase-admin-node
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
firebase/firebase-admin-node#3234 ·
-
firebase/firebase-admin-node#3221 · 3 comments · 1 assignee ·
-
api: messaging
Difficulty 3/5 1-2 days Newbie friendliness 70/100
firebase/firebase-admin-node#3215 ·
-
api: messaging
Difficulty 5/5 Over a week Newbie friendliness 28/100
firebase/firebase-admin-node#3214 ·
-
api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 comment · 1 assignee ·
All issues in firebase/firebase-admin-node
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100