[英]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 密钥:
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.