isopruefi-frontend / utils/tokenHelpers / decodeToken
Function: decodeToken()¶
decodeToken(
token):null|JwtPayload
Defined in: utils/tokenHelpers.ts:104
Decodes a JWT token and extracts the payload containing user information.
Does not verify the token signature - use only for reading claims.
Parameters¶
token¶
string
The JWT token to decode
Returns¶
null | JwtPayload
The decoded payload object, or null if decoding fails