|
@@ -5,9 +5,8 @@ import { stringify } from 'qs';
|
|
|
* Verify if the request came from slack
|
|
* Verify if the request came from slack
|
|
|
* See: https://api.slack.com/authentication/verifying-requests-from-slack
|
|
* See: https://api.slack.com/authentication/verifying-requests-from-slack
|
|
|
*/
|
|
*/
|
|
|
-// TODO GW-5628 move this to slack package
|
|
|
|
|
export const verifyingIsSlackRequest = (req, res, next):string => {
|
|
export const verifyingIsSlackRequest = (req, res, next):string => {
|
|
|
- // Temporary
|
|
|
|
|
|
|
+
|
|
|
if(req.signingSecret == null){
|
|
if(req.signingSecret == null){
|
|
|
return res.send('No signing secret.')
|
|
return res.send('No signing secret.')
|
|
|
}
|
|
}
|