Browse Source

fix: timestamp

zahmis 5 years ago
parent
commit
177ff0246f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/slack/src/utils/verifying-is-slack-request.ts

+ 1 - 1
packages/slack/src/utils/verifying-is-slack-request.ts

@@ -20,7 +20,7 @@ export const verifyingIsSlackRequest = (req : Request & signingSecretType, res:R
   const slackSignature = req.headers['x-slack-signature'];
   const timestamp = req.headers['x-slack-request-timestamp'];
 
-  if (slackSignature == null || slackSignature == null) {
+  if (slackSignature == null || timestamp == null) {
     return res.send('Verification failed');
   }