Files
automatisch/packages/backend/src/apps/github/auth/is-still-verified.ts
2022-10-16 23:34:21 +02:00

14 lines
315 B
TypeScript

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