firebase-admin-go icon indicating copy to clipboard operation
firebase-admin-go copied to clipboard

EmailVerificationLink without apiKey

Open shahzodshafizod opened this issue 6 months ago • 14 comments

Hi, it's already two days I'm trying to send an email verification mail, but the link inside the mail doesn't contain a value for apiKey. That's why I'm receiving this message: "The selected page mode is invalid." by clicking the link from mail.

I also tried sending the email by api to the route: https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key={apiKey}", but result is the same.:(

What can be wrong?

An example of link (I didn't hide anything except the project name):

m.authClient.EmailVerificationLink: https://<PROJECT_NAME>.firebaseapp.com/__/auth/action?mode=verifyEmail&oobCode=JoNSiRpM6LhrjleFEfJKPbqti9arNkTCUkeiyYD541AAAAGMvAETVw&apiKey=&lang=en

m.authClient.EmailVerificationLinkWithSettings: https://<PROJECT_NAME>.firebaseapp.com/__/auth/action?mode=verifyEmail&oobCode=DJFO3hiveuX7lv25BzQ7Pyfd4POblJ1Nury5EquhESwAAAGMvAKOlQ&apiKey=&lang=en

shahzodshafizod avatar Dec 30 '23 19:12 shahzodshafizod

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar Dec 30 '23 19:12 google-oss-bot

I created a new project without upgrading to Firebase Auth with Identity Platform, the link became correct (with apiKey filled) in mails. I also suspect that there may be incorrect settings in previous project, because I touched everything.

shahzodshafizod avatar Dec 31 '23 06:12 shahzodshafizod

I have this same issue. Please re-open as creating a new project did not resolve it.

kajensen avatar Jan 10 '24 19:01 kajensen

I have a similar issue on the client using sendSignInLinkToEmail method. It sends a URL with a apiKey query parameter with no value.

arobert93 avatar Jan 25 '24 14:01 arobert93

same issue here for new created firebase projects with new auth paid version

Monedita avatar Jan 31 '24 10:01 Monedita

Same issue here for a firebase project created today using Blaze plan.

Saschamz avatar Jan 31 '24 18:01 Saschamz

Updates on this? Same issue

jamesrhyspotter avatar Feb 01 '24 17:02 jamesrhyspotter

Same issue

FKSAxell avatar Feb 04 '24 07:02 FKSAxell

same issue

eva-cn avatar Feb 04 '24 13:02 eva-cn

I started a Flutter(FlutterFire) and Firebase project yesterday, encountered this issue, and read that it might work after some time. After a day, I tested it again, the API key is now being sent successfully. I didn't do anything, just waited.

FKSAxell avatar Feb 04 '24 14:02 FKSAxell

I am getting the same issue with my newly created Firebase project in Flutter. It's working fine with old projects.

Edited: It started working after about 2 weeks for me!!

sm-sayedi avatar Feb 06 '24 22:02 sm-sayedi

After a few days it started working for me fine, hang in there and maybe refactor some code whilst you wait

jamesrhyspotter avatar Feb 07 '24 00:02 jamesrhyspotter

Same problem here

Paroca72 avatar Feb 10 '24 03:02 Paroca72

Hey folks, this is the repo for Firebase Admin SDK for Golang. Are you experiencing this issue when using the SDK to generate email verification links on server side?

lahirumaramba avatar Mar 05 '24 17:03 lahirumaramba