Skip to content

Commit ec19c6c

Browse files
committed
Remove overtly strict check on scopes during authorization_code grant type flow
Mastodon apparently supports passing scopes to /oauth/token endpoint
1 parent 9481a4b commit ec19c6c

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/oauth.tsx

-11
Original file line numberDiff line numberDiff line change
@@ -317,17 +317,6 @@ app.post("/token", cors(), async (c) => {
317317
);
318318
}
319319

320-
if (form.scope) {
321-
return c.json(
322-
{
323-
error: "invalid_request",
324-
error_description:
325-
"The authorization code grant flow does not accept a scope parameter.",
326-
},
327-
400,
328-
);
329-
}
330-
331320
return await db
332321
.transaction(
333322
async (tx) => {

0 commit comments

Comments
 (0)