Skip to main content

toolcraft_jwt/
lib.rs

1pub mod error;
2mod jwt;
3mod verify;
4
5pub use jwt::{Claims, Jwt, JwtCfg};
6pub use verify::VerifyJwt;
7
8use crate::error::Error;
9pub type Result<T> = std::result::Result<T, Error>;
10
11pub trait AccessTokenVerifier: Send + Sync {
12    fn validate_access_token(&self, token: &str) -> Result<Claims>;
13}