diff --git a/main.ts b/main.ts index aba3723..dce8630 100644 --- a/main.ts +++ b/main.ts @@ -15,6 +15,7 @@ app.post("/prelogin", async (c) => { name: g.slice(1).replace("discord-", ""), type: 2, })); + const user = { status: 1, username, @@ -24,9 +25,10 @@ app.post("/prelogin", async (c) => { }, }; console.log("oidc", user); + return c.json(user); } else { - return c.json(payload); + return c.json({ status: 1 }); } });