5 Commits

Author SHA1 Message Date
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
João Gustavo
bf926cd9b7 fixing-laudo-editor 2025-10-12 01:53:38 -03:00
João Gustavo
f934c0f33c add-list-and-edit-report-endpoitns 2025-10-10 19:46:31 -03:00
João Gustavo
2bb0b06375 add-create-report-endpoints 2025-10-10 03:04:10 -03:00
João Gustavo
6951dcec96 add-report-endpoints 2025-10-08 21:40:06 -03:00