feat(strava): add connection verified check

This commit is contained in:
Ali BARIN
2023-04-07 14:16:30 +02:00
parent 8be2ed0034
commit dece070d28
@@ -0,0 +1,13 @@
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;