isopruefi-frontend / utils/tokenHelpers / getUserFromToken
Function: getUserFromToken()¶
getUserFromToken(
token):null|string
Defined in: utils/tokenHelpers.ts:128
Extracts the user identifier from a JWT token.
The subject field typically contains the username or user ID.
Parameters¶
token¶
string
The JWT token to extract user information from
Returns¶
null | string
The user identifier string, or null if extraction fails