Provide a way to read the JWT Token data on other site

Problem to solve

User and Roles on this backend will be used as user and roles on other apps, to prevent multiple check to this service on /api/whoami, provide a necessary information (user, roles, and basic data) to JWT Token so other apps can decode it themself.

Intended users

Developer

Further details

Provide more detailed data on JWT Token so other apps can read the core data themself

Proposal

Create a shared library and provide more payload to JWT Token

Permissions and Security

Documentation

What does success look like, and how can we measure that?

User can decode the JWT Token

Links / references