Service Layer low complexity mobile
0
Dependencies
1
Dependents
4
Entities
0
Integrations

Description

Mobile-side utility that decodes the role claim from the access token at session start and passes it to the Module Registry. Role changes take effect at the next token refresh without forcing a logout.

Feature: Role-Based Access Control

jwt-role-claims-decoder

Responsibilities

  • Decode the role array claim from the short-lived JWT access token
  • Supply the active role to the Module Registry for navigation assembly
  • Re-evaluate role on every silent token refresh cycle

Interfaces

decodeRoleClaims(accessToken: String): List<Role>
currentRole(): Role
onTokenRefreshed(newToken: String): void

Relationships

Dependents (1)

Components that depend on this component