Skip to main content

Module jwt

Module jwt 

Source
Expand description

JWT (JSON Web Token) handling with key rotation and multi-algorithm support

Supports HS256 (symmetric HMAC) and RS256 (asymmetric RSA) algorithms. Supports multiple signing keys for zero-downtime key rotation. Old keys remain valid during a configurable grace period after rotation.

Structs§

Claims
JWT token claims
JwtKey
A single HMAC signing key with lifecycle metadata
JwtService
JWT service with key rotation and multi-algorithm support
KeyRotationConfig
Configuration for key rotation behavior
RsaKeyPair
An RSA key pair for asymmetric JWT signing

Enums§

JwtAlgorithm
JWT signing algorithm