refactor: Use beforeRequest hook with slack app

This commit is contained in:
Faruk AYDIN
2022-10-18 23:01:56 +02:00
parent 3004cf1115
commit 7422f63c62
6 changed files with 24 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
import { IGlobalVariable } from '@automatisch/types';
import verifyCredentials from './verify-credentials';
const isStillVerified = async ($: any) => {
const isStillVerified = async ($: IGlobalVariable) => {
try {
await verifyCredentials($);
return true;