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 :
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
2 Replies
Did you figure this out? Sorry to bump and old thread but I am looking for the same information
for anyone else looking for this answer.. you can't directly change the callbackURL for the one triggered by sendOnSignup, but you can parse the URL and manually change the param:
for reference: https://github.com/better-auth/better-auth/issues/1367
GitHub
callbackURL isnt respected · Issue #1367 · better-auth/better-auth
Is this suited for github? Yes, this is suited for github To Reproduce the callbackURL property isnt respected, i always get callback to /, please fix it Current vs. Expected behavior it will redir...