Function mas_jose::claims::hash_token

source ·
pub fn hash_token(
    alg: &JsonWebSignatureAlg,
    token: &str,
) -> Result<String, TokenHashError>
Expand description

Hash the given token with the given algorithm for an ID Token claim.

According to the OpenID Connect Core 1.0 specification.

§Errors

Returns an error if the algorithm is not supported.