1 files changed, 10 insertions, 0 deletions
diff --git a/src/api/routes/oauth2/authorize.ts b/src/api/routes/oauth2/authorize.ts
index f7cec207..2f2351f3 100644
--- a/src/api/routes/oauth2/authorize.ts
+++ b/src/api/routes/oauth2/authorize.ts
@@ -197,6 +197,16 @@ router.post(
// const { client_id, scope, response_type, redirect_url } = req.query;
const { client_id } = req.query;
+ if (!client_id) {
+ throw FieldErrors({
+ client_id: {
+ code: "BASE_TYPE_REQUIRED",
+ message: req.t("common:field.BASE_TYPE_REQUIRED"),
+ },
+ });
+ }
+
+ // TODO: ensure guild_id is not an empty string
// TODO: captcha verification
// TODO: MFA verification
|