Function line_bot_sdk_rust::webhook::validate_signature[][src]

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

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 webhook::validate_signature(channel_secret, signature, body) {
    // OK
} else {
    // NG
}