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
fix: implement global session management and fix page access
🔧 Authentication System Improvements:
- Create global AuthProvider for consistent session management
- Add demo mode support with localStorage persistence
- Fix client-side authentication state management
- Ensure session persists across page navigation
📱 Page Access Fixes:
- Convert server-side auth pages to client-side
- Update graph, actions, modules, workbench pages
- Add proper loading states and redirects
- Support both Supabase auth and demo mode
✨ Demo Mode Features:
- Seamless demo mode activation from login/signup
- Persistent demo session across page refreshes
- Clear demo mode indicators in UI
- Proper demo mode sign out handling
🛡️ Session Persistence:
- Global auth state management via React Context
- Automatic session restoration on page load
- Consistent authentication checks across all pages
- Proper cleanup on sign out
This fixes the issue where users couldn't access protected pages
after login and ensures session state is maintained globally.
0 commit comments