Files
automatisch/packages/backend/src/apps/twitter/auth/is-still-verified.ts
2022-10-07 16:06:10 +03:00

14 lines
300 B
TypeScript

import { IGlobalVariable } from '@automatisch/types';
import getCurrentUser from '../common/get-current-user';
const isStillVerified = async ($: IGlobalVariable) => {
try {
await getCurrentUser($);
return true;
} catch (error) {
return false;
}
};
export default isStillVerified;