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-16 11:18:59 -03:00
2025-08-15 20:48:48 +00:00

riseup-squad20

Description
No description provided
Readme 94 MiB
Languages
TypeScript 98.9%
CSS 0.8%
JavaScript 0.3%