Verifies a delivery's signature headers against the raw body. When
Shortcut-Signature is present it must verify over Shortcut-Timestamp,
Shortcut-Delivery, and the body, with the timestamp inside the window,
and Payload-Signature is ignored. When it is absent, the request is
rejected, unless allowLegacySignature is true: then Payload-Signature
verifies the body alone, except for a session event, which Shortcut always
signs with Shortcut-Signature.
Verifies a delivery's signature headers against the raw body. When
Shortcut-Signatureis present it must verify overShortcut-Timestamp,Shortcut-Delivery, and the body, with the timestamp inside the window, andPayload-Signatureis ignored. When it is absent, the request is rejected, unlessallowLegacySignatureistrue: thenPayload-Signatureverifies the body alone, except for a session event, which Shortcut always signs withShortcut-Signature.