Module jwt

Module jwt 

Source
Expand description

JWT (JSON Web Token) encode, decode, and verify.

Provides compact JWT serialization used by JWT-VC and SD-JWT.

Structs§

JwtHeader
JWT header (JOSE header).

Functions§

alg_to_str
Map a SignatureAlgorithm to its JWA string.
decode_jwt
Decode a JWT with signature verification.
decode_jwt_unverified
Decode a JWT without verifying the signature.
encode_jwt
Encode and sign a JWT, returning the compact serialization (header.payload.signature).
str_to_alg
Map a JWA string to a SignatureAlgorithm.