Function jwtk::verify

source ·
pub fn verify<ExtraClaims: DeserializeOwned>(
    token: &str,
    k: &dyn VerificationKey
) -> Result<HeaderAndClaims<ExtraClaims>>
Expand description

Decode and verify token.

The alg, exp and nbf fields are automatically checked.