Function verify_nonce_with_any

Source
pub fn verify_nonce_with_any<S>(
    secrets: &[S],
    nonce_b64: &str,
    now_unix: i64,
    max_age_secs: i64,
    ctx: &NonceCtx<'_>,
) -> Result<(), DpopError>
where S: IntoSecretBox + Clone,
Expand description

Verify against multiple secrets (e.g., key rotation: current, previous).

Accepts a slice of secrets, where each secret can be either a SecretBox<[u8]> or any type that can be converted to bytes (e.g., &[u8], Vec<u8>).