Skip to main content

core.parsejwtpayload

Home > @medplum/core > parseJWTPayload

parseJWTPayload() function

Parses the JWT payload.

Signature:

export declare function parseJWTPayload(token: string): Record<string, number | string>;

Parameters

ParameterTypeDescription
tokenstringJWT token.

Returns:

Record<string, number | string>

Collection of key value claims in the JWT payload.