const slackToken = process.env.SLACK_TOKEN || 'oOhkAnYu5MZ8HI8skrTXOzqE'
const testingSlackToken = 'zXvD5nqzIdDweibfwCAtSCPL'

module.exports = function slackVerification(req, res, next) {
  if (req.body.token === slackToken || req.body.token === testingSlackToken) {
    req.body.requestTime = new Date()
    next()
  } else {
    res.status(401).send('Unauthorized')
  }
}

@@ -39,91 +39,65 @@
 OKEN
- %7C%7C 'oOhkAnYu5MZ8HI8skrTXOzqE'%0Aconst testingSlackToken = 'zXvD5nqzIdDweibfwCAtSCPL'
+%0Aconst testingSlackToken = process.env.TESTIN_SLACK_TOKEN
 %0A%0Amo

remove tokens