feat(strava): add connection verified check

This commit is contained in:
Ali BARIN 2022-11-06 17:20:45 +01:00
parent e3ca82ba37
commit 160484842d
No known key found for this signature in database
GPG Key ID: 01C22C63F8065070

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;