Skip to main content
checkSignature(algorithm, signature, data): boolean
Defined in: twitch.ts:117 This method can be used to verify the Twitch signature when receiving an event sub request.

Parameters

algorithm

string The algorithm to use

signature

string The signature to verify

data

BinaryLike The data to verify

Returns

boolean Whether or not the signature is valid

Example