getDecodedPayload

Decodes the payload of a JWT (JSON Web Token) and returns a DecodedPayload object.

Return

The decoded payload as a DecodedPayload object.

Parameters

token

The JWT to decode.

Throws

If the JWT is not valid or contains missing claims.