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.
pub fn verify<ExtraClaims: DeserializeOwned>(
token: &str,
k: &dyn VerificationKey
) -> Result<HeaderAndClaims<ExtraClaims>>
Decode and verify token.
The alg
, exp
and nbf
fields are automatically checked.