`callbackURL` for `emailVerification` using `sendOnSignUp: true`

How do I change the callbackURL for the email verification if my sendOnSignUp is true? It seems I can set it if I manually trigger the verification email:
await authClient.sendVerificationEmail({
email: "user@email.com",
callbackURL: "/", // The redirect URL after verification
});
await authClient.sendVerificationEmail({
email: "user@email.com",
callbackURL: "/", // The redirect URL after verification
});
But how do I change it in the configuration?
No description
1 Reply
sebastian
sebastian2mo ago
export the token, and add callbackUrl query to the link. You can see how full url is working by exporting the url

Did you find this page helpful?