🔑 Authentication & Authorization
Secure authentication protocols, JWT, OAuth, SSO, and identity management solutions
Production Ready
OAuth2
JWT
Overview
Secure authentication protocols, JWT, OAuth, SSO, and identity management solutions
Enterprise Security
Battle-tested authentication for production
Fast Validation
Sub-millisecond token verification
Easy Integration
Drop-in middleware for major frameworks
Packages
Quick Start Example
Get started with Authentication & Authorization:
use avx_auth::{JwtAuth, OAuth2};
// JWT authentication
let auth = JwtAuth::new(secret)?;
let token = auth.encode(&claims)?;
let verified = auth.verify(&token)?;
// OAuth2 flow
let oauth = OAuth2::new(client_id, client_secret);
let auth_url = oauth.authorize_url(scopes);
let token = oauth.exchange_code(code).await?;