Function fetch_keys

Source
pub async fn fetch_keys(url: &str) -> JwkSet
Expand description

Fetch jwks from the provided url and tries to parse them to JwkSet.

ยงPanics

  • If the request to the auth server fails.
  • If the keys cannot be deserialized to JwkSetHelper.