Skip to main content

Module jwt

Module jwt 

Source
Expand description

Compact JWS: minting with a SigningKey and verifying against a Jwk, under fully-specified algorithms only.

Structs§

Decoded
A JWT split into its decoded header and claims. Nothing here is verified.

Functions§

decode
Split a compact JWS without verifying it.
encode
Mint a JWT: header gains alg, and kid when the key’s thumbprint is wanted and none is given.
remaining_secs
Seconds until a JWT’s exp, less margin; None when unreadable or due. For caches deciding how long to keep a token they did not mint.