3
votes

I'm creating a flutter app and use Firebase Auth, everything works just fine including Facebook and Google sign ins, however, once password reset link is sent via email, it shows up as already expired.

I have found this answer which states "you need to include the app itself which is where the emails originate: .firebaseapp.com", I don't understand what type of credential needs to be added. Could someone look at the images below and advice what is missing? Or is this not the problem in my case? What else should I check?

Credentials: enter image description here

Firebase console: enter image description here

Webpage: enter image description here

1

1 Answers

8
votes

In case anyone runs into an issue like this, here's what solved my issue (thank you, Firebase support!!!).

  • Go to Cloud Console, under APIs & Services > Credentials
  • Select API key that has "Restrictions" as "HTTP referers" (See question picture "Credentials").
  • Under "Application restrictions", add https://Project_ID.firebaseapp.com (hence you need to copy your Project ID from the firebase console (See question picture "Firebase console")

In my case I had AWS cognito credentials there and since I've moved to Firebase it was not updated.