firebase / firebase-admin-go

Firebase Admin Go SDK
Apache License 2.0
1.12k stars 239 forks source link

EmailVerificationLink without apiKey #600

Open shahzodshafizod opened 6 months ago

shahzodshafizod commented 6 months ago

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://.firebaseapp.com/__/auth/action?mode=verifyEmail&oobCode=JoNSiRpM6LhrjleFEfJKPbqti9arNkTCUkeiyYD541AAAAGMvAETVw&apiKey=&lang=en

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

google-oss-bot commented 6 months ago

I found a few problems with this issue:

shahzodshafizod commented 6 months ago

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.

kajensen commented 5 months ago

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

arobert93 commented 5 months ago

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

Monedita commented 5 months ago

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

Saschamz commented 5 months ago

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

jamesrhyspotter commented 5 months ago

Updates on this? Same issue

FKSAxell commented 5 months ago

Same issue

eva-cn commented 5 months ago

same issue

FKSAxell commented 5 months ago

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.

sm-sayedi commented 4 months ago

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!!

jamesrhyspotter commented 4 months ago

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

Paroca72 commented 4 months ago

Same problem here

lahirumaramba commented 4 months ago

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?