Reads the JWT session cookie from the request and returns the authenticated user id. Returns null when the token is missing or invalid.
The incoming request object.
The authenticated user id if token and profile are valid; otherwise null.
Reads the JWT session cookie from the request and returns the authenticated user id. Returns null when the token is missing or invalid.