Skip to main content

rotate_jwt_keys

Function rotate_jwt_keys 

Source
pub async fn rotate_jwt_keys(
    config: &OAuthConfig,
    secrets_dir: &Path,
    store: &SigningKeyStore,
    now: i64,
) -> bool
Expand description

Returns true when every signer slot this cycle touched finished fully restored (or promoted). false means a promotion rollback failed: the durable state is only partially restored, the old active signer stays recoverable in its drain-slot copy, and callers must not treat the cycle as a clean success. A later tick retries the queued lead.