- Updated AppRouter to use AuthProvider instead of direct Supabase calls
- Ensures proper navigation after logout through state management
- Router now correctly responds to AuthProvider state changes
- Added /reset-password, /reset-password-confirm, and /update-password routes
- Updated redirect logic to allow password reset routes regardless of auth state
- Added token extraction from query parameters for deep linking
- Enhanced error handling for malformed reset URLs
- Updated imports to include password reset pages
- Created AppRouter with GoRouter for declarative navigation
- Added protected routes that redirect to login if not authenticated
- Implemented splash screen with loading state and auth checking
- Set up route definitions for login, signup, home, and splash
- Added error handling for navigation failures
- Includes authentication state-based redirects
Files modified:
- lib/core/router/app_router.dart
- lib/features/authentication/presentation/pages/splash_page.dart