Unify flows to onboarding and auth-aware Realms

cgen-414ca18633e449d09ea76e4a6b0006fc
This commit is contained in:
Builder.io 2025-10-18 21:40:06 +00:00
parent f4dc20cc54
commit 567393bfcb

View file

@ -277,9 +277,9 @@ export default function Dashboard() {
// Only redirect to login when auth is resolved and there's no user
if (!user && !authLoading) {
console.log("No user after auth resolved, redirecting to login");
console.log("No user after auth resolved, redirecting to onboarding");
setIsLoading(false);
navigate("/login", { replace: true });
navigate("/onboarding", { replace: true });
return;
}