DVStandardWebhookSignature class abstract final

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

The webhook-signature value for secrets, current key first.
sign({required String secret, required String id, required String timestamp, required String body}) → String
One v1,<base64> entry for secret.
verify({required String secret, required Map<String, String> headers, required String body, Duration? tolerance = defaultTolerance, DateTime? now}) → bool
Whether headers carry a valid Standard Webhooks signature of body under secret.

Constants

defaultTolerance → const Duration
The window the official libraries enforce, and the default here.