From f503d59eebb4c720ccfa555c718d813975158919 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 14 Nov 2025 23:42:10 +0100 Subject: [PATCH] fix: Set Content-Type header to text/plain for Discord login request --- src/components/repo/authv2.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/repo/authv2.ts b/src/components/repo/authv2.ts index 52ebe04..2a28530 100644 --- a/src/components/repo/authv2.ts +++ b/src/components/repo/authv2.ts @@ -55,6 +55,9 @@ export class AuthV2Repo { await this.request("/auth/discord", { method: "POST", body: token, + headers: { + "Content-Type": "text/plain", + }, }) .then((value) => value.json()) .then((value) => ResponseUserSchema.parse(value));