feat(google-forms): add authentication

This commit is contained in:
Ali BARIN
2023-01-03 19:06:04 +01:00
parent f8df7987b8
commit 3fc7fce9ca
9 changed files with 200 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { IGlobalVariable } from '@automatisch/types';
const getCurrentUser = async ($: IGlobalVariable) => {
const { data: currentUser } = await $.http.get(
'https://people.googleapis.com/v1/people/me?personFields=names,emailAddresses'
);
return currentUser;
};
export default getCurrentUser;