Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
return status:1 if not oidc
Browse files Browse the repository at this point in the history
  • Loading branch information
NextFire committed Jan 6, 2024
1 parent 63fd15c commit 7c6ec19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ app.post("/prelogin", async (c) => {
name: g.slice(1).replace("discord-", ""),
type: 2,
}));

const user = {
status: 1,
username,
Expand All @@ -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 });
}
});

Expand Down

0 comments on commit 7c6ec19

Please sign in to comment.