jwt
jwt(
options?):JwtLibrary
jwt configures JWT parsing, claim inspection, and presenter validation.
jwt.parse(string) decodes a token, stripping a leading Bearer prefix, and yields an optional
jwt.Token. Both claim() and presentedBy() accept either a token or an optional token, so a
parse result can be used without unwrapping it first.
Tokens are not verified. Verify the signature before evaluating an expression over the token. Time claims are only checked when JwtOptions.validateTimes is enabled.
This library configures the CEL optional type library.
Parameters
Section titled “Parameters”options?
Section titled “options?”JwtOptions = {}