BA
Better Auth•15h ago
Snibbo71

Trying to resend verification email

I can't see anything in the documentation relating to how to re-send a verification email if the token has expired. I try using the authClient.sendVerificationEmail({ email: "theuser@where-ever.com", callbackURL: "/dashboard"}) and I get the following; "YOU_CAN_ONLY_SEND_A_VERIFICATION_EMAIL_TO_AN_UNVERIFIED_EMAIL" The email IS unverified in the database so I seem to be a bit stuck... Also, I know the email is unverified because it's an account I'm testing and I haven't verified it... Can anyone shed some light for me? I have a user I need to resend the verification email to and have no idea how to do it 🙂 Ta
1 Reply
Snibbo71
Snibbo71OP•15h ago
Also, if I request a new password on that account, the flow sends me a password reset email, which allows me to change my password but then when I try to login tells me I must verify my email. If I've managed to click on the password reset link in the email I actually have actually verified my email address 🙂 So the flow is a bit odd here. Which doesn't help my user who's now stuck in limboland... Actually, I can manually verify since they've sent me a copy of the email - but I would prefer to be able to have a 'resend verification email' button so people can it themselves in future 🙂

Did you find this page helpful?