Skip to main content

prepare_hs256_verifier

Function prepare_hs256_verifier 

Source
pub fn prepare_hs256_verifier(token: &str) -> Result<Hs256Verifier>
Expand description

Build an Hs256Verifier from a JWT.

Returns Err when the token is malformed, not HS256, or has an empty signature. Callers should fall back to verify in that case.