Function mas_oidc_client::jose::claims::hash_token

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.