Skip to main content

validate_hs256_claim

Function validate_hs256_claim 

Source
fn validate_hs256_claim<T: DeserializeOwned>(
    token: &str,
    key: &JwtKey,
) -> Result<T, Error>
Expand description

Decodes and verifies an HS256 token into the requested claim type.