Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase dynamic links not working for Firebase sign in with email link (password less)

I'm using Firebase sendSignInWithEmailLink with the url generated as part of the Firebase dynamic link.

  1. The firebase dynamic url looks like: e.g: https://myapp.page.link/H1c4

  2. The url from step 1 is sent as part of sendSignInWithEmailLink

  3. User received email and clicks on the verification link.

  4. At the end of redirection I can see that the url contains the oobCode as shown below:

https://myapp.page.link/H1c4?apiKey=&oobCode=YG2N2eLU4qGBsDeLU5cVsDrzF9qwkGzoUepInuA9pm0AAAFtfk41Nw&mode=signIn&lang=en

  1. When my app receives the dynamic link finally, it is loosing the oobCode. My app gets

https://myapp.page.link/uEOBUnv1k4XclzwfsT5NXnGBgAA3/ The part after link/ is a custom data which I used while generating the link in step 1.

When I use isSignInWithEmailLink for validating the link in step 5, I get the result as FALSE indicating it's not a valid email link.

But if I provide the full URL from step 4 in the code(manually), the isSignInWithEmailLink returns TRUE.

I think I've done all required but Firebase dynamic link is not persisting the oobCode as part of the link sent to the app on the device.

Has anyone seen this and know what could be the problem? keen to get feedback here before reporting as an issue in Github.

Cheers

like image 259
Eventap IO Avatar asked Dec 06 '25 08:12

Eventap IO


1 Answers

Are you using a custom dynamic link with a path, eg. https://myapp.page.link/H1c4? If so, that is currently not supported with Firebase Auth. Only custom domains with no paths are supported, eg. https://myapp.page.link.

like image 120
bojeil Avatar answered Dec 09 '25 16:12

bojeil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!