From 76b29aef9a1ee022d84d448b7c147e9143d9be5a Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Wed, 1 May 2024 18:49:33 -1000 Subject: [PATCH] fix(api): :bug: Only send code query parameter when doing OAuth redirects --- server/api/oauth/authorize/index.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/api/oauth/authorize/index.ts b/server/api/oauth/authorize/index.ts index d39b64b6..da34fc51 100644 --- a/server/api/oauth/authorize/index.ts +++ b/server/api/oauth/authorize/index.ts @@ -309,13 +309,8 @@ export default apiRoute( const searchParams = new URLSearchParams({ code: code, - scope: scope ?? application.scopes, - token_type: "Bearer", - client_id: client_id, }); - if (state) searchParams.set("state", state); - return response(null, 302, { Location: `${redirectUri.origin}${ redirectUri.pathname