0

I want to send to user email with oobCode instead of link when they try to reset the password. But there is no variable like %OOB_CODE% because of this I have to send link which forces my users to open new tab with my application but I want to users to receive the oobCode and then copypaste it into field in my application which already opened

I found similar questions:

The similar questions are old, they asked more than 2 years ago

Is there any way to send only oobCode instead of link in "Password reset email"?

EzioMercer
  • 1,502
  • 2
  • 7
  • 23

1 Answers1

2

Is there any way to send only oobCode instead of link in "Password reset email"?

The link in the "Password reset" email contains the oobCode as a query string parameter.

There is actually no way to generate this code via the Firebase Authentication API or via the Admin SDKs. So, you need to extract the code from the query string.

Renaud Tarnec
  • 79,263
  • 10
  • 95
  • 121