Files
automatisch/packages/backend/src/apps/google-calendar/auth/is-still-verified.ts
2023-09-18 15:12:29 +03:00

10 lines
288 B
TypeScript

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