lots of changes
This commit is contained in:
@@ -23,7 +23,7 @@ export function SignIn() {
|
||||
try {
|
||||
const flow = step === "signIn" ? "signIn" : "signUp";
|
||||
await signIn("password", { email, password, flow });
|
||||
const next = nextPath || (flow === "signIn" ? "/dashboard" : "/onboarding");
|
||||
const next = nextPath || (flow === "signIn" ? "/app/dashboard" : "/onboarding");
|
||||
if (flow === "signIn") {
|
||||
router.push(next);
|
||||
} else {
|
||||
@@ -41,7 +41,7 @@ export function SignIn() {
|
||||
};
|
||||
|
||||
const handleGoogleSignIn = () => {
|
||||
const next = nextPath || "/dashboard";
|
||||
const next = nextPath || "/app/dashboard";
|
||||
void signIn("google", { redirectTo: next });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user