Prevent Verification Email being re-sent on every SignIn

I use email verification in my app. Every time I try to sign in (before confirming my email), another verification email is sent out since the function "sendVerificationEmail" is called again. Is there any way to prevent this? I'd like to send only one confirmation email and then maybe allow the user to trigger another one manually.
3 Replies
Ping
Ping3mo ago
You'll have to code your own system to check if a verification email has been sent to that user recently or not.
LightTab2
LightTab22mo ago
GitHub
feat: add sendVerificationOnSignIn to prevent automatic resending o...
This pull request introduces a new configuration option, sendVerificationOnSignIn, to provide more control over email verification during the sign-in process. The changes span documentation updates...
LightTab2
LightTab22mo ago
GitHub
feat(email-verification): make verification email send on unverifie...
I have tidied up and fixed tests of #2660 by @JingerTea Great work! This pull request introduces a new configuration option, sendVerificationOnSignIn, to provide more control over email verificati...

Did you find this page helpful?