callbackURL not supported in v1.2.5

callbackURL is not supported in v1.2.5? I updated to new version, and auth.api.signUpEmail not support callbackURL what is solution?
9 Replies
bekacru
bekacru7d ago
callbackURL should still be supported. But it's just used for email verfication. You sohuld redirect using your framework navigation api.
Golddy
GolddyOP7d ago
It was working before with version 1.2.4 but not working now (even next build gives error) Fyi, we are using next.js and better auth
bekacru
bekacru7d ago
what is the error?
₳ndreas
₳ndreas7d ago
It just cannot build, because the callbackURL is not a valid prop. But it's not supported in v1.2.7. It was working in v1.2.5.
₳ndreas
₳ndreas7d ago
@bekacru you can see a build error here in one of our public repos -> https://github.com/masumi-network/sokosumi/actions/runs/14439602973/job/40486700748
GitHub
build(deps): bump better-auth from 1.2.5 to 1.2.7 in /web-app · ma...
This is the monorepo of the Sokosumi Marketplace, the web-app is built with Next.js and TypeScript, with a strong focus on UX and security - build(deps): bump better-auth from 1.2.5 to 1.2.7 in /we...
₳ndreas
₳ndreas7d ago
The PR only upgrades from v1.2.5 to v1.2.7.
bekacru
bekacru7d ago
yeah sorry about that. Will be reveerted back soon but callbackURL is meant for email verification only. so you can safley remove it for the time being. Also I don't think it's necessary to create a server action in your case. You can just call authClient.signUp.email, it has validation for you.
₳ndreas
₳ndreas7d ago
Thanks for your advice 👍 We also only use it for email verification, that's why I removed it for now in the PR.
Davis
Davis7d ago
Has the same problem in v1.2.7. The calbackURL has type error in auth.api.signUpEmail

Did you find this page helpful?