M-Gabrielly 05123e6c8f feat(auth): persist roles and support multi-role in ProtectedRoute
- Persist `roles` array in localStorage on login and session restore.
- Reconcile `userType` from roles returned by the `user-info` function.
- `ProtectedRoute` now accepts `requiredUserType?: UserType[]` and `requiredRoles?: string[]` and evaluates multi-role permission (OR semantics).
- Minor adjustments in `useAuth` and debug logs to ensure consistent `profile` and `roles` restoration.
- Main files changed: `hooks/useAuth.tsx`, `components/ProtectedRoute.tsx`, `types/auth.ts.
2025-10-13 02:18:49 -03:00
..
2025-09-17 22:51:30 -03:00
2025-10-11 22:30:05 -03:00
2025-09-28 04:10:40 -03:00
2025-09-28 04:10:40 -03:00
2025-09-28 04:10:40 -03:00
2025-09-28 04:10:40 -03:00
2025-10-11 22:30:05 -03:00