2
votes

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

1

1 Answers

1
votes

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.