feat(backend): add RequestDiscordTokenAsync method

This commit is contained in:
sam 2024-06-12 16:19:49 +02:00
parent 2a7bd746aa
commit 6186eda092
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
12 changed files with 230 additions and 22 deletions

View file

@ -0,0 +1,10 @@
import { fastRequest } from "$lib/request";
export const load = async ({ fetch, url }) => {
await fastRequest(fetch, "POST", "/auth/discord/callback", {
body: {
code: url.searchParams.get("code"),
state: url.searchParams.get("state"),
},
});
};

View file

@ -0,0 +1,5 @@
<script lang="ts">
</script>
<p>omg its a login page</p>