pub fn verify(
secret: &str,
headers: &HeaderMap,
body: &[u8],
now: OffsetDateTime,
) -> Result<(), SigError>Expand description
Checks a webhook the Standard Webhooks way: webhook-id, webhook-timestamp (unix seconds,
within five minutes of now) and webhook-signature (v1,<base64 HMAC-SHA256 of "{id}.{timestamp}.{body}">, several separated by spaces; one valid is enough). Signatures
are compared in constant time.