Skip to main content

jwt_service/
lib.rs

1//! A high-performance async library for JWT (JSON Web Token) authentication and authorization.
2//! Supports token generation, validation, and custom claims with optimized memory usage,
3//! ideal for HTTP clients/servers and web applications.
4
5mod r#const;
6mod r#enum;
7mod r#impl;
8mod r#struct;
9
10pub use {r#enum::*, r#struct::*};
11
12use r#const::*;
13
14use std::{
15    collections::HashMap,
16    time::{SystemTime, UNIX_EPOCH},
17};
18
19use {
20    jsonwebtoken::{
21        Algorithm, DecodingKey, EncodingKey, Header, TokenData, Validation, decode, encode,
22    },
23    serde::{Deserialize, Serialize},
24    serde_json::Value,
25};