Better AuthBA
Better Auth•3mo 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
Was this page helpful?