Function validate_signature

Source
pub fn validate_signature(
    channel_secret: &str,
    signature: &str,
    body: &str,
) -> bool
Expand description

Signature validator

§Note

The signature in the x-line-signature request header must be verified to confirm that the request was sent from the LINE Platform. [detail]

§Example

if validate_signature(channel_secret, signature, body) {
    // OK
} else {
    // NG
}