armature-jwt
JWT authentication and authorization for the Armature framework.
Features
- Token Generation - Create signed JWTs with custom claims
- Token Verification - Validate signatures and expiration
- Multiple Algorithms - HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384
- Refresh Tokens - Built-in token refresh flow
- Custom Claims - Extend with your own claim types
Installation
[]
= "0.1"
Quick Start
use ;
async
Token Refresh
// Generate token pair (access + refresh)
let = jwt.generate_pair?;
// Refresh the access token
let new_access = jwt.refresh?;
License
MIT OR Apache-2.0