testing/payload_signer library

Functions

signPayloadTest({required String secret, required Object body, String? id, int? timestampSeconds}) SignedPayload
Sign body for secret and 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 body string and the headers a Coffrify webhook would carry.