testing/payload_signer library
Functions
-
signPayloadTest(
{required String secret, required Object body, String? id, int? timestampSeconds}) → SignedPayload -
Sign
bodyforsecretand return the headers a Coffrify webhook would carry. Defaults to the Standard Webhooks v1 format.
Typedefs
-
SignedPayload
= ({String body, Map<
String, String> headers}) -
Forged payload bundle: the
bodystring and the headers a Coffrify webhook would carry.