is Request Valid
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
webhook Secret
your webhook secret key
expected Signature
the expected signature of the request. (Header "X-Nylas-Signature")