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:
headergainsalg, andkidwhen the key’s thumbprint is wanted and none is given. - remaining_
secs - Seconds until a JWT’s
exp, lessmargin;Nonewhen unreadable or due. For caches deciding how long to keep a token they did not mint.