Skip to main content

JwtVerifier

Type Alias JwtVerifier 

Source
pub type JwtVerifier = Box<dyn Fn(&Jwk, &[u8], &[u8]) -> Result<(), String> + Send + Sync>;
Expand description

Signature-verification callback. Owns the crypto dependency so the auth module stays pure Rust. Returns Ok(()) when the signature over signing_input verifies with jwk, Err otherwise.

Aliased Typeยง

pub struct JwtVerifier(/* private fields */);