`generateVerifyAndChangeEmailLink` only works for accounts with existing email
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- firebase, node.js, typescript
调研方向
首先跟踪 Firebase Admin Node.js 身份验证实现中的 generateVerifyAndChangeEmailLink 及其现有测试,并使用针对缺少电子邮件的用户的已报告调用作为复现用例。完成标准是:在启用电子邮件枚举保护的情况下,仍能为此类帐户生成链接,并且为已报告的场景提供测试覆盖。
由索引模型根据 Issue 内容生成。
描述
- Operating System version: Firebase Cloud
- Firebase SDK version: 12.6.0
- Firebase Product: auth
- Node.js version: 20
- NPM version: 10
Steps to reproduce:
In our app, we allow social login with Facebook (and more, but irrelevant). When authenticating with Facebook, the user can decide to not provide his email address. Since our whole application builds arounds mails, we ask them to provide one.
We activated email enumeration protection recently!
Since we can no longer set that mail in the frontend code and we want styled/custom mails, we would like to use generateVerifyAndChangeEmailLink in the admin library. But it seems impossible to call that function, if we don't provide an existing email.
This is, how the user looks in Firebase Console
Relevant Code:
// I tried different things for the existing mail, but all failed
await getAuth().generateVerifyAndChangeEmailLink('-', email, actionCodeSettings);
- 主要语言
- TypeScript
- 星标
- 1.7k
- 派生
- 419
- 平均合并
- 4 天 20 小时
- 30 天内合并 PR
- 16
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/firebase-admin-node 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
firebase/firebase-admin-node#3234 ·
-
firebase/firebase-admin-node#3221 · 3 条评论 · 已指派 1 人 ·
-
api: messaging
难度 3/5 1-2 天 新手友好度 70/100
firebase/firebase-admin-node#3215 ·
-
api: messaging
难度 5/5 一周以上 新手友好度 28/100
firebase/firebase-admin-node#3214 ·
-
api: firestore type: feature request
firebase/firebase-admin-node#3183 · 1 条评论 · 已指派 1 人 ·
查看 firebase/firebase-admin-node 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100