fix: Set Content-Type header to text/plain for Discord login request
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
This commit is contained in:
@@ -55,6 +55,9 @@ export class AuthV2Repo {
|
|||||||
await this.request("/auth/discord", {
|
await this.request("/auth/discord", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: token,
|
body: token,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "text/plain",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
.then((value) => value.json())
|
.then((value) => value.json())
|
||||||
.then((value) => ResponseUserSchema.parse(value));
|
.then((value) => ResponseUserSchema.parse(value));
|
||||||
|
|||||||
Reference in New Issue
Block a user