feat(backend): add RequestDiscordTokenAsync method
This commit is contained in:
parent
2a7bd746aa
commit
6186eda092
12 changed files with 230 additions and 22 deletions
|
@ -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"),
|
||||
},
|
||||
});
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
<script lang="ts">
|
||||
|
||||
</script>
|
||||
|
||||
<p>omg its a login page</p>
|
Loading…
Add table
Add a link
Reference in a new issue