Resend Email Verification not working.
When user signup on the system using email and password then after successful sign up sendVerificationEmail is send which is good.
But when the user sign in without verifying the email then on UI side it send the email not verified which is also good.
However, as per the documentation it says that 
but it does not trigger the sendVerificationEmail hook  due to which link is not send, even after login is done without email verified properly.

7 Replies
@admin  Please help on this part
If you want just make email verification required and they cant login without verifying their email
According to the Better Auth documentation, the verification email should be automatically resent on every login if the email is not verified. However, this behavior is not happening in my current implementation.
Ah sorry I didnt see your whole message and recognise thats what youre doing already
Add a log to the sendEmailVerification to check if its even being called
Might also want to check your spam folder
What email sending service are you using?
@The Untraceable 
I have tested this by adding console.log statements before posting the issue on here. When I sign up with email and password, the verification email is sent as expected. However, when I sign in with an unverified email and password, the sendEmailVerification function is not called. The issue is that sendEmailVerification isn’t being triggered during login, even though my implementation matches the correct example shown in the documentation (screenshot above).
You have to set sendOnSignIn to true for this to work.
Thanks it worked