Skip to content

Commit

Permalink
confirm hex value
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Liendo committed Jul 3, 2018
1 parent 5fd29f3 commit 057a427
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes/slackv1-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ slackv1Router.post('/sassy', (req,res) => {
const timestamp = req.get('X-Slack-Request-Timestamp')
const baseString = `v0:${timestamp}:${formData}`
const hmac = crypto.createHmac('sha256', baseString)
console.log(formData)
console.log(hmac.digest('hex'))
const clapbackText = clapback(text)

console.log('the hmac value is:', hmac)
Expand Down

0 comments on commit 057a427

Please sign in to comment.