You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement client-side and layout route guards to enforce authentication and guide new users through onboarding.
Create useRequireAuth hook to protect routes like /dashboard, /create, /forms/*, /templates/create.
Create AuthGuard layout wrapper for protected route segments.
Implement navigation logic: After OAuth login, inspect user profile state (username, fullName). If incomplete, redirect to /onboarding; otherwise redirect to /dashboard.
Implement client-side and layout route guards to enforce authentication and guide new users through onboarding.
useRequireAuthhook to protect routes like/dashboard,/create,/forms/*,/templates/create.AuthGuardlayout wrapper for protected route segments.username,fullName). If incomplete, redirect to/onboarding; otherwise redirect to/dashboard.