重置密码 Firebase 时的 API 密钥错误 [英] API key bug when resetting password Firebase

查看:18
本文介绍了重置密码 Firebase 时的 API 密钥错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 firebase 在我的 Android 应用程序中对用户进行身份验证.我为用户提供了在登录窗口中重置密码的选项.当用户单击按钮时,它会成功发送电子邮件.但是当用户点击链接时,它总是显示

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

"再次尝试重置您的密码.您重设密码的请求已过期或该链接已被使用"

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

有人知道我错在哪里吗?我尝试使用来自不同设备的不同电子邮件 ID 登录.还是行不通.我正在使用com.google.firebase:firebase-auth:9.2.0".

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'.

2016 年 8 月 31 日更新

我联系了 firebase 支持,看起来 API 密钥存在一些错误.如果您更改浏览器 API 密钥,则它不会更新.现在这个bug已经修复,重置密码功能正常运行.

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.

推荐答案

如果您在 Google API 控制台,您需要包含电子邮件来源的应用程序本身:.firebaseapp.com.否则,此域对于您的应用密钥无效.

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.

这篇关于重置密码 Firebase 时的 API 密钥错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆