2020-06-01から1ヶ月間の記事一覧
const crypto = require('crypto'); const channelSecret = 'xxxxxxx' // envとかから取る exports.handler = async(event) => { const body = Buffer.from(event.body, 'base64').toString() const signature = crypto.createHmac('SHA256', channelSecret)…