简体   繁体   English

Firebase 重置密码链接失败,因为它使用旋转/旧 API 密钥

[英]Firebase Reset Password Link is failing because it's using rotated/old API Key

I rotated the API Key that is used for setting up the firebase/auth app.我旋转了用于设置 firebase firebase/auth应用程序的 API 密钥。 Upon calling sendPasswordResetEmail successfully, I receive a link that is using the previous API Key.成功调用sendPasswordResetEmail后,我收到一个使用先前 API 密钥的链接。

Here's the API Key:这是 API 密钥:

谷歌云控制台中的新旧 api 密钥

Here's the link that was generated:这是生成的链接:

https://XXXXXXXXXX.firebaseapp.com/__/auth/action?mode=resetPassword&oobCode=XXXXXXX&apiKey=AIzXXXXXXXXXXXXXXXKPQ&lang=en

notice it ends with KPQ , which is the old key.请注意它以KPQ ,这是旧密钥。 The link does not work, it says it's expired.链接失效了,说过期了。

If I swap out the API Key with the new one in the link, then I'm able to continue the forget password flow.如果我用链接中的新密钥替换 API 密钥,那么我可以继续忘记密码流程。

Does anyone know how to fix this?有谁知道如何解决这一问题? I'm using the updated API key in the app's config.我在应用程序的配置中使用更新的 API 密钥。

Firebase support suggested waiting for changes to happen on the backend. Firebase 支持建议等待后端发生更改。 What I ended up doing to fix the issue was creating a new credential/api key (not rotate the existing one), and deleting the old ones.我最终解决此问题的方法是创建一个新的凭据/api 密钥(不轮换现有的),并删除旧的。 The issue still persisted for the weekend, it is now working though.这个问题在周末仍然存在,但它现在正在工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase 重置密码链接(未发送/未收到) - Firebase Reset Password Link (Not sending/Did not receive) 为什么这段代码在firebase发送密码重置链接失败? - Why did this code fail to send password reset link in firebase? Firebase - 自定义重置密码登陆页面 - Firebase - Customize reset password landing page Firebase - 什么是 API 密钥 - Firebase - What is the API Key 如果用户忘记了 firebase 和 flutter 中的密码,如何重置密码 - how to reset the password if user forgot the password in firebase and flutter 如何自定义 firebase 动作 URL 进行密码重置和 email 验证? - How to customize firebase action URL for password reset and email verification? 使用 REST API 的 firebase 电子邮件/密码身份验证 - firebase email/password auth with REST API 可以通过 AWS 中的 secretmanagerid 检索或刷新密码,密码已按策略每五分钟轮换一次 - It´s possible retrive or refresh a password by secretmanagerid in AWS, the password has been rotated by a policy every five minutes 如何在没有 API 密钥的情况下模拟 Firebase 身份验证 - How to emulate Firebase authentication without an API key 如果 Flutter Firebase Auth Password Reset 中没有 Email 地址的注册用户,则不发出警告 - Do not warn if there is no registered user with Email address in Flutter Firebase Auth Password Reset
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM