Skip to content

feat: added role exposure of the user in auth/me endpoint

Bhaskar Battula requested to merge role-exposure into develop

Summary

Adds the authenticated user’s role to the response payload of the GET /api/v1/auth/me endpoint.

Problem

Currently, the GET /api/v1/auth/me endpoint does not expose the authenticated user’s role information. As a result, frontend applications and the CLI cannot reliably determine authorization levels without making additional API requests.

This creates unnecessary complexity for:

  • Role-based UI rendering
  • Access control checks
  • Conditional feature availability
  • Client-side authorization handling

Solution

Updated the GET /api/v1/auth/me response to include a new role field for the authenticated user.

Closes: #132

Merge request reports

Loading