redirect after sign up, emailAndPassword

       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?
Was this page helpful?