feat(salesforce): add authentication

This commit is contained in:
Ali BARIN
2022-11-03 23:08:28 +01:00
parent 7d82ca5d3c
commit ede55a70aa
9 changed files with 289 additions and 0 deletions

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;