generateVerifyAndChangeEmailLink is unable to create the email action link
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- firebase, nodejs, typescript
- Domain
- authentication
Research direction
Start by reproducing the failure from the generateVerifyAndChangeEmailLink entry point using the TypeScript example and the stated Firebase SDK version. Trace the Admin Node.js Auth implementation and its email-action-link request; done means changing a user's email produces a link instead of auth/internal-error.
Written by the indexing model from the issue text.
Description
Describe your environment
- Operating System version: _____
- Firebase SDK version: 13.2.0
- Firebase Product: auth
- Node.js version: 22.14.0
- NPM version: 10.9.2
Describe the problem
generateVerifyAndChangeEmailLink stopped working. Unfortunately I was unable trace what caused it to stop working.
When running following code to change a users email I get following error:
FirebaseAuthError: INTERNAL ASSERT FAILED: Unable to create the email action link
{
errorInfo: {
code: 'auth/internal-error',
message: 'INTERNAL ASSERT FAILED: Unable to create the email action link'
},
codePrefix: 'auth'
}
Steps to reproduce:
Create firebase auth user with password and email.
Try to change the email of the user using generateVerifyAndChangeEmailLink
Relevant Code:
import admin from "firebase-admin";
const serviceAccountDev = require("../keys/developmentKey.json");
admin.initializeApp({
credential: admin.credential.cert(serviceAccountDev),
});
const changeMail = async (email: string, newEmail: string) => {
const changeMailLink = await admin
.auth()
.generateVerifyAndChangeEmailLink(email, newEmail);
console.log("changeMailLink", changeMailLink);
};
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 419
- Avg merge
- 3d 10h
- 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
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·