- Update AuthContext with new login response structure - Add isLoading state to prevent premature redirects - Implement proper session restoration from localStorage - Update permission checking logic (id=1 = super admin) - Fix login form to use new API structure - Store tokens, user info, and permissions in localStorage |
||
|---|---|---|
| .. | ||
| AuthContext.tsx | ||
| ThemeContext.tsx | ||
| ToastContext.tsx | ||