Module jwt

Source
Expand description

JSON Web Token (JWT) minting and verification. JSON Web Token (JWT) minting and verification for AT Protocol OAuth.

Provides functionality for creating and verifying JWT tokens with JOSE standard claims and custom extensions for AT Protocol OAuth flows. Supports ES256, ES384, and ES256K elliptic curve signature algorithms with comprehensive timestamp validation and structured error handling.

Structs§

Claims
JWT claims combining standard JOSE claims with custom private claims.
Header
JWT header containing algorithm and key metadata.
JoseClaims
Standard JOSE claims for JWT tokens.

Functions§

mint
Create and sign a new JWT token.
verify
Verify a JWT token and extract its claims.

Type Aliases§

SecondsSinceEpoch
Type alias for timestamp values representing seconds since Unix epoch.