Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase reset password link not working

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"

enter image description here

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

UPDATE on 31 August 2016

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.

like image 201
Dexter Avatar asked Jul 02 '16 13:07

Dexter


People also ask

How do I reset my Firebase Web password?

To complete the password reset, call firebase. auth. Auth. confirmPasswordReset with the code supplied in the email sent to the user, along with the new password specified by the user.

How do I log into Firebase with my email and password?

If you haven't yet connected your app to your Firebase project, do so from the Firebase console. Enable Email/Password sign-in: In the Firebase console, open the Auth section. On the Sign in method tab, enable the Email/password sign-in method and click Save.

What is oobCode?

oobCode. A one-time code, used to identify and verify a request. apiKey. Your Firebase project's API key, provided for convenience. continueUrl.


2 Answers

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.

like image 84
Travis Christian Avatar answered Oct 03 '22 00:10

Travis Christian


I had the same issue and solve it. But the protocol should be https.

And in the end of URL I have to add the /* as there will be token, api_key and other parameters added by firebase here.

https://Project ID.firebaseapp.com/* (I get my Project ID from the firebase console)

like image 32
Jaroslav Kardash Avatar answered Oct 03 '22 02:10

Jaroslav Kardash