feat: stripe triggers (payout + transaction)

This commit is contained in:
Pierre Maurice Schwang
2022-11-24 23:22:02 +01:00
parent d3a059d759
commit ef27c9348b
11 changed files with 189 additions and 0 deletions

View File

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