feat(strava): add connection verified check

This commit is contained in:
Ali BARIN
2022-11-06 17:20:45 +01:00
parent 8be2ed0034
commit dece070d28

View File

@@ -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;