Files
automatisch/packages/backend/src/apps/spotify/common/get-current-user.ts
2023-03-18 13:41:18 +03:00

11 lines
287 B
TypeScript

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