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
callbackURL should still be supported. But it's just used for email verfication. You sohuld redirect using your framework navigation api.
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
what is the error?
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.@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...
The PR only upgrades from v1.2.5 to v1.2.7.
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.Thanks for your advice 👍
We also only use it for email verification, that's why I removed it for now in the PR.
Has the same problem in v1.2.7. The calbackURL has type error in
auth.api.signUpEmail