Email verification callback URL

Hello,

First thank you for your amazing work on Better-auth.

I'm trying to figure out how can I define a callback URL when enabling :
export const auth = betterAuth({
    emailAndPassword: {
        requireEmailVerification: true
    }
})

Because by default when this option is enabled the verification email is sent automatically on every register with the server callback URL, my issue is that my front is separated from my backend so the redirect is wrong.

How could I specifie a callback URL and keep the required email verification ?

Best regards
Was this page helpful?