firebase / firebase/firebase-admin-node

generateVerifyAndChangeEmailLink is unable to create the email action link

Đang mở
#2,895 4 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: _____
* 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:

```typescript
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);
};

```

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.