Expand description
JWT encode/decode (ES256) and a generic SecurityContext<E> for auth.
Structs§
- Claims
- JWT payload, generic over an app-defined extension type
Efor custom claims. - JwtConfig
- ES256 EC key material and expiration used by
encode_jwt/decode_jwt. - Security
Context - Wraps validated JWT
Claimsfor use in request handlers/extractors.
Enums§
- JwtError
- Errors returned by
encode_jwt/decode_jwt.
Functions§
- decode_
jwt - Decode and verify a JWT token, returning the Claims.
- encode_
jwt - Encode a Claims struct into a JWT token.