diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a526e9e..a3988e1 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -22,7 +22,7 @@
-
+
@@ -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); }} />