callbackURL doesnt work with signUp

await authClient.signUp.email({
name: values.name,
email: values.email,
password: values.password,
callbackURL: "/dashboard",
});
await authClient.signUp.email({
name: values.name,
email: values.email,
password: values.password,
callbackURL: "/dashboard",
});
after successful sign up its not redirecting to /dashboard, while the same callback url but for signIn redirects
3 Replies
kaishin
kaishin2mo ago
Having the same issue
Corbi-Wan Kenobi
Same. Not redirecting in v1.3.12. No error, just nothing. Signin/up are suffessful. Network dev tool shows page is in effect reloading but the screen does not refresh at all. I'm in NextJS
const result = await auth.api.signInEmail({
body: {
email,
password,
callbackURL: "/dashboard",
},
});
console.log(result);
return result;
const result = await auth.api.signInEmail({
body: {
email,
password,
callbackURL: "/dashboard",
},
});
console.log(result);
return result;
Tried adding http://localhost:3000 with no effect. It's as if the returned redirect is being ignored.
Shayokh
Shayokh2mo ago
Same here. I had to use useRouter to mitigate it

Did you find this page helpful?