verifySignature method

void verifySignature({
  1. required String body,
  2. required Map<String, String> headers,
})

Verifies the signature and timestamp of a delivery without parsing its body.

Takes the same arguments and throws the same exceptions as verify, except InvalidPayloadException.

Implementation

void verifySignature({
  required String body,
  required Map<String, String> headers,
}) => verifySignatureBytes(body: utf8.encode(body), headers: headers);