signedHeaders static method
Builds the webhook-id, webhook-timestamp and webhook-signature
headers of a signed delivery, for testing webhook handlers.
Implementation
static Map<String, String> signedHeaders({
required String secret,
required String id,
required DateTime timestamp,
required String body,
}) => {
idHeader: id,
timestampHeader: _unixSeconds(timestamp),
signatureHeader: sign(
secret: secret,
id: id,
timestamp: timestamp,
body: body,
),
};