isRequestValid
public final static Boolean isRequestValid(String payload, String webhookSecret, String expectedSignature)
Validates the signature of a webhook request
Return
true if the request is valid
Parameters
payload
the raw payload of the request
webhookSecret
your webhook secret key
expectedSignature
the expected signature of the request. (Header "X-Nylas-Signature")