@@ -33,8 +33,16 @@
size="large"
username="Fishie_Honesty_bot"
requestAccess={true}
- on:auth={(...args) => {
- console.log(args);
+ on:auth={async (auth) => {
+ console.log(auth.detail);
+ const login = await fetch('/api/Auth/logIn', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(auth.detail)
+ });
+ console.log(login);
}}
/>