Files
automatisch/packages/backend/src/apps/slack/common/get-current-user.js
2024-01-05 17:44:21 +01:00

12 lines
256 B
JavaScript

const getCurrentUser = async ($) => {
const params = {
user: $.auth.data.userId,
};
const response = await $.http.get('/users.info', { params });
const currentUser = response.data.user;
return currentUser;
};
export default getCurrentUser;