Skip to content

Function: verifySignature() ​

ts
function verifySignature(
   secret, 
   body, 
   header, 
   opts?
): SignatureCheck;

Whether header signs body with secret, and if not, why.

Parameters ​

ParameterType
secretstring
bodystring | Uint8Array
headerstring | null | undefined
optsVerifyOptions

Returns ​

SignatureCheck

Talkline documentation