YOU_CAN_ONLY_SEND_A_VERIFICATION_EMAIL_TO_AN_UNVERIFIED_EMAIL

I have a custom signup logic , when a user try to login i am sending a verification email from front end using this code
await authClient.sendVerificationEmail({
    email: "user@email.com",
    callbackURL: "/" // The redirect URL after verification
})



but its returning this error


YOU_CAN_ONLY_SEND_A_VERIFICATION_EMAIL_TO_AN_UNVERIFIED_EMAIL.

also whenever a user try to update his email getting this error , without a proper error reason
{
    "code": "COULDNT_UPDATE_YOUR_EMAIL",
    "message": "Couldn't update your email",
    "status": 400,
    "statusText": "BAD_REQUEST"
}

@Better Auth
Was this page helpful?