feat(monday): add monday integration

This commit is contained in:
Rıdvan Akca
2024-05-03 14:04:57 +02:00
committed by Jakub P.
parent 36e94ec0ad
commit 53b92cfc00
9 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
const verifyCredentials = async ($) => {
const body = {
query: 'query { me { name, email } }',
};
const { data } = await $.http.post('/', body);
const screenName = [data.data.me.name, data.data.me.email]
.filter(Boolean)
.join(' @ ');
await $.auth.set({
screenName,
apiToken: $.auth.data.apiToken,
});
};
export default verifyCredentials;