JwtInstance
Sealed base class for a parsed or constructed JWT token instance.
The two concrete variants correspond to the two main JWT token types defined in the JOSE specifications:
Jws — a signed token (JWS, RFC 7515) with three compact-serialization parts:
header.payload.signature.Jwe — an encrypted token (JWE, RFC 7516) with five compact-serialization parts:
header.encryptedKey.iv.ciphertext.tag.
Use compact to obtain the compact-serialized string, or getPayload / getHeader to deserialize the payload or header into a typed object.
See also
Inheritors
Types
Properties
Functions
Link copied to clipboard
Deserializes the token payload as type T.
Deserializes the token payload using the given serializer.