jwt-service 0.2.2

A high-performance async library for JWT (JSON Web Token) authentication and authorization. Supports token generation, validation, and custom claims with optimized memory usage, ideal for HTTP clients/servers and web applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::*;

#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
pub enum JwtValidationError {
    Expired,
    InvalidSignature,
    InvalidIssuer,
    InvalidSubject,
    NotYetValid,
    Malformed,
    Other(String),
}