So far in my project, I have set up a basic user management system. However, I'm unable to figure out a way to resend verification link after the user registers.
For example: When the user signs up, createUserWithEmailAndPassword
is called which returns a promise. The promise is now resolved using then
(or await
) to which sendEmailVerification
is called. This is all fine.
Note: The above flow is what I currently have implemented to for user management on the client side with Firebase Auth
.
However, what if the user happens to delete this email or for whatever reason has no access to it at all. I want to be able to resend the link.
This uses Firebase Admin SDK
on the backend and is an example of how to generate the verification email on the server-side. However, it appears that it is used in conjunction with account creation. In addition, it appears that Firebase Auth
follows the same set of restrictions.
Not too sure where to go next and was wondering if there are any suitable workarounds.
Thanks.