Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a function to check if a webhook request has a correct signature.
- validateSignature :: ChannelSecret -> Request -> ByteString -> Bool
Signature validation
validateSignature :: ChannelSecret -> Request -> ByteString -> Bool Source #
Provided a channel secret, WAI request and request body, it determines the request is properly signatured, which probably means it is sent from a valid LINE server.
For more details of webhook authentication, please refer to the LINE documentation.