Skip to main content

verify

Function verify 

Source
pub async fn verify(
    secret: &str,
    body: &str,
    signature: &str,
    tolerance: Option<i64>,
) -> Result<bool>
Expand description

True when signature (the Fauna-Signature header, t=<seconds>,v1=<hex>) is the HMAC SHA-256 of t.body under secret, signed within tolerance seconds of now (300 when None). Pass the raw request body, before any JSON parsing.