632 B
632 B
Claims and Roles Guidelines
To ensure consistency across the application, all claim and role values MUST be in lowercase.
Roles
The following roles are currently used in the system:
administratormanagerclientproviderdeveloper
Implementation Notes
- Processing: The
authStore.jsautomatically converts all roles extracted from JWT tokens to lowercase. - Comparisons: All checks (e.g.,
authStore.hasAnyRole(['role-name'])ormeta: { roles: ['role-name'] }) should use lowercase strings. - Routing: Route guards in
router.jsexpect lowercase role names in themeta.rolesfield.