chore: address review comments

This commit is contained in:
Pierre Maurice Schwang
2022-11-29 20:03:16 +01:00
parent f47d912074
commit 34e2c77934
12 changed files with 126 additions and 134 deletions

View File

@@ -1,13 +1,9 @@
import { IGlobalVariable } from '@automatisch/types';
const verifyCredentials = async ($: IGlobalVariable) => {
try {
await $.http.get(
`/v1/events`,
);
} catch (e) {
throw new Error('Invalid secret key')
}
await $.http.get(
`/v1/events`,
);
await $.auth.set({
screenName: $.auth.data?.displayName,
});