Skip to main content

SecretFn

Type Alias SecretFn 

Source
pub type SecretFn = Arc<dyn Fn() -> Result<String, String> + Send + Sync>;
Expand description

Reads a client secret when it is needed (from the secrets store), so a rotated secret applies without a restart.

Aliased Typeยง

pub struct SecretFn { /* private fields */ }