Skip to main content

validate_nonce

Function validate_nonce 

Source
pub fn validate_nonce(nonce: &str) -> Result<(), NonceError>
Expand description

Checks a request nonce: canonical padded base64 decoding to at least MIN_NONCE_BYTES.

A verifier cannot measure entropy, so this is the whole of what it can check.

ยงErrors

Returns a NonceError describing the first rule the nonce breaks.