firebase / firebase/firebase-admin-node
Firebase-admin verifies expired token (Cause of expiration: Change in credentials)
- 主要语言
- TypeScript
- 星标
- 1.7k
- 派生
- 419
- 平均合并
- 3 天 10 小时
- 30 天内合并 PR
- 16
描述
### Environment
I'm using ubuntu 21
Firebase-admin 10.2.0
node v16
#### Steps to reproduce:
1. In the web app, sign in with your firebase user credentials (email/password in my case)
2. Now make a request to your backend API accessing an endpoint that will modify the user's email.
3. After this, the front-end app will indicate that the user needs to reauthenticate with firebase when trying to use the old token to make firebase requests.
4. Yet on the backend application, the front end can still send the old token to my backend API and the `verifyIdToken` method still validates the token and proceeds.
贡献指南
调研方向
从 verifyIdToken 入口点开始,在所述的 Ubuntu、Node v16 和 Firebase Admin 10.2.0 环境中重现报告的序列。确认用户的电子邮件发生更改后 token 过期的预期行为,然后跟踪相关的身份验证测试或添加回归测试;当旧 token 按照该预期得到一致处理时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- firebase, node.js, typescript
- 领域
- authentication, backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100