11 lines
289 B
TypeScript
11 lines
289 B
TypeScript
import { IGlobalVariable } from '@automatisch/types';
|
|
|
|
const getCurrentUser = async ($: IGlobalVariable) => {
|
|
const { data } = await $.http.get(
|
|
`https://api.miro.com/v1/oauth-token?access_token=${$.auth.data.accessToken}`
|
|
);
|
|
return data.user;
|
|
};
|
|
|
|
export default getCurrentUser;
|