Skip to main content

jwt_config_with_keys

Function jwt_config_with_keys 

Source
pub fn jwt_config_with_keys(
    config: &AppConfig,
    keys: Option<JwtKeys>,
) -> JwtConfig
Expand description

As jwt_config, with keys the host has already parsed.

For a host that keeps parsed keys longer than one configuration lives: a Worker reads its configuration on every request, and decodes a JWKS only when the secret changes.