diff --git a/frontend/apps/artcraft-webapp/src/components/auth/signup-form.tsx b/frontend/apps/artcraft-webapp/src/components/auth/signup-form.tsx index 830f844ea8..711b41d847 100644 --- a/frontend/apps/artcraft-webapp/src/components/auth/signup-form.tsx +++ b/frontend/apps/artcraft-webapp/src/components/auth/signup-form.tsx @@ -87,11 +87,11 @@ export const SignupForm = ({ const handleGoogleSuccess = async () => { // Refresh so the session reflects the new cookie (and whether the account - // still needs a password), then route accordingly. New SSO users with no - // password go set one; everyone else goes home. + // still needs a password), then route accordingly. New SSO users skip + // setting a password and go straight to pricing; everyone else goes home. await refreshSession(true); if (useSessionStore.getState().passwordNotSet) { - navigate("/set-password"); + navigate("/pricing"); } else { navigate("/"); } diff --git a/frontend/apps/artcraft-webapp/src/components/signup-cta-modal.tsx b/frontend/apps/artcraft-webapp/src/components/signup-cta-modal.tsx index 88af032901..7fc28f045b 100644 --- a/frontend/apps/artcraft-webapp/src/components/signup-cta-modal.tsx +++ b/frontend/apps/artcraft-webapp/src/components/signup-cta-modal.tsx @@ -51,13 +51,13 @@ export function SignupCtaModal() { const [error, setError] = useState(null); // Mirror the login/signup pages: refresh the session so it reflects the new - // cookie, then send brand-new SSO users to set a password. Everyone else + // cookie, then send brand-new SSO users straight to pricing. Everyone else // just closes the modal and stays on the page they were on. const handleGoogleSuccess = async () => { await refreshSession(true); close(); if (useSessionStore.getState().passwordNotSet) { - navigate("/set-password"); + navigate("/pricing"); } }; diff --git a/frontend/apps/artcraft-webapp/src/pages/login/login.tsx b/frontend/apps/artcraft-webapp/src/pages/login/login.tsx index f6e7791949..ede3ad7797 100644 --- a/frontend/apps/artcraft-webapp/src/pages/login/login.tsx +++ b/frontend/apps/artcraft-webapp/src/pages/login/login.tsx @@ -53,7 +53,8 @@ const Login = () => { // account still needs a password) before deciding where to send them. await refreshSession(true); if (useSessionStore.getState().passwordNotSet) { - navigate("/set-password"); + // New SSO users skip setting a password and go straight to pricing. + navigate("/pricing"); } else { navigate(redirectTo); }