Igor Lamas
Igor Lamas
BABetter Auth
Created by Igor Lamas on 3/28/2025 in #help
redirect after sign up, emailAndPassword
await signIn.email(
{
email,
password,
callbackURL: "/admin",
}
await signIn.email(
{
email,
password,
callbackURL: "/admin",
}
can I redirect the user based on role? if it is a normal user, redirect to '/dashboard', if it is an admin '/admin'. How do you guys handle this?
3 replies