Impact
The GET /sessions/me endpoint returns _Session fields that the server operator explicitly configured as protected via the protectedFields server option. Any authenticated user can retrieve their own session's protected fields with a single request. The equivalent GET /sessions and GET /sessions/:objectId endpoints correctly strip protected fields.
Patches
The GET /sessions/me handler now re-fetches the session with the caller's auth context after validating the session token, ensuring protectedFields and CLP apply consistently with other session endpoints.
Workarounds
None.
References
Impact
The
GET /sessions/meendpoint returns_Sessionfields that the server operator explicitly configured as protected via theprotectedFieldsserver option. Any authenticated user can retrieve their own session's protected fields with a single request. The equivalentGET /sessionsandGET /sessions/:objectIdendpoints correctly strip protected fields.Patches
The
GET /sessions/mehandler now re-fetches the session with the caller's auth context after validating the session token, ensuringprotectedFieldsand CLP apply consistently with other session endpoints.Workarounds
None.
References