Files
automatisch/packages/backend/src/apps/github/common/get-current-user.ts

11 lines
286 B
TypeScript

import { IGlobalVariable, IJSONObject } from '@automatisch/types';
const getCurrentUser = async ($: IGlobalVariable): Promise<IJSONObject> => {
const response = await $.http.get('/user');
const currentUser = response.data;
return currentUser;
};
export default getCurrentUser;