I would like to customize the email template (using the Trigger Email extension templates) to send verification links to users.
I understand it is not possible to change the template from the Firebase console as it prevents spam.
I am aware of the ability to customize action email handlers (The page that the user lands on when the link in verification email is clicked), as well as the ability to update the auth user's emailVerified
property manually.
Is there also a way to generate the verification link that firebase would have used? One with the following properties:
- mode
- oobCode
- apiKey
- continueUrl
- lang
My ideal solution is to send a custom template to the user upon registration with the generated verification link. Direct users to a custom handler page, and use the applyActionCode()
function as shown in The Docs to verify the email (I hope this implicitly updates the emailVerified
property on the Auth.User
record.)