import fs from 'fs' import { AuthKeys } from './types' export const validateAuthKeys = (authKeys: AuthKeys) => { if (!authKeys || !authKeys.current || !authKeys.previous) { throw new Error('AuthKeys are missing... Fatal Error.') } } export const getConfigFile = async () => (JSON.parse(fs.readFileSync(`${__dirname}/wappi.json`, 'utf8')))