Firebase重置密码链接无效

时间:2022-11-15 12:17:26

I am using firebase to authenticate users in my android app. I provide user an option to reset password in login window. When user click on button, it sends email successfully. However when user clicks on link, it always showing

我正在使用firebase来验证我的Android应用程序中的用户。我向用户提供了在登录窗口中重置密码的选项。当用户点击按钮时,它会成功发送电子邮件。但是,当用户点击链接时,它始终显示

"Try resetting your password again. Your request to reset your password has expired or the link has already been used"

“请尝试重新设置密码。重置密码的请求已过期或链接已被使用”

Firebase重置密码链接无效

Anyone knows where I'm Wrong ? I tried login with different email IDs from different devices. Still not working. I am using 'com.google.firebase:firebase-auth:9.2.0'.

谁知道我哪里错了?我尝试使用不同设备的不同电子邮件ID登录。还是行不通。我使用的是“com.google.firebase:firebase-auth:9.2.0”。

UPDATE on 31 August 2016

2016年8月31日更新

I got in touch with firebase support and it looks like there was some bug with API key. If you change your browser API key, it was not getting updated. Now this bug is fixed and reset password function is working properly.

我与firebase支持联系,看起来有一些API密钥错误。如果您更改了浏览器API密钥,则无法更新。现在这个错误已修复,重置密码功能正常。

3 个解决方案

#1


4  

If you've listed any HTTP referrers for your app's API key in the Google API console, you need to include the app itself which is where the emails originate: <app-name>.firebaseapp.com. Otherwise this domain is not valid for your app's key.

如果您在Google API控制台中列出了应用的API密钥的任何HTTP引荐来源,则需要包含电子邮件来源的应用本身: .firebaseapp.com。否则,此域名对您的应用密钥无效。

#2


0  

I also experienced the same issue, and for me, the cause was sending multiple password reset emails, and I got only the first one.

我也遇到了同样的问题,对我来说,原因是发送了多个密码重置电子邮件,而我只得到了第一个。

Make sure you send the reset password email just once or if you did it multiple times, wait for the multiple emails to arrive and use the latest email.

确保您只发送一次重置密码电子邮件,或者如果您多次发送,请等待多封电子邮件到达并使用最新的电子邮件。

#3


0  

Temporarily I've solved the issue by leaving only one unrestricted API key at Google API Console

暂时我已经通过在Google API控制台上只保留一个不受限制的API密钥来解决了这个问题

Firebase重置密码链接无效

#1


4  

If you've listed any HTTP referrers for your app's API key in the Google API console, you need to include the app itself which is where the emails originate: <app-name>.firebaseapp.com. Otherwise this domain is not valid for your app's key.

如果您在Google API控制台中列出了应用的API密钥的任何HTTP引荐来源,则需要包含电子邮件来源的应用本身: .firebaseapp.com。否则,此域名对您的应用密钥无效。

#2


0  

I also experienced the same issue, and for me, the cause was sending multiple password reset emails, and I got only the first one.

我也遇到了同样的问题,对我来说,原因是发送了多个密码重置电子邮件,而我只得到了第一个。

Make sure you send the reset password email just once or if you did it multiple times, wait for the multiple emails to arrive and use the latest email.

确保您只发送一次重置密码电子邮件,或者如果您多次发送,请等待多封电子邮件到达并使用最新的电子邮件。

#3


0  

Temporarily I've solved the issue by leaving only one unrestricted API key at Google API Console

暂时我已经通过在Google API控制台上只保留一个不受限制的API密钥来解决了这个问题

Firebase重置密码链接无效