WebhookVerifier constructor

WebhookVerifier(
  1. String secret, {
  2. Duration tolerance = const Duration(minutes: 5),
  3. DateTime clock()?,
})

Creates a verifier for secret, the secret returned when the webhook or route was created.

Deliveries whose timestamp is more than tolerance away from the current time are rejected. clock returns the current time and defaults to DateTime.now; override it in tests.