Skip to content

Commit

Permalink
Fix customPropertyNames filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
eyw520 committed Jan 10, 2025
1 parent 16713d4 commit 8f5a7d9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export function convertOAuthTokenEndpoint({
: {};

const customPropertyNames = Object.keys(requestBodyProperties).filter(
(propertyName) => propertyName !== "client_id" && propertyName !== "client_secret" && propertyName !== "scopes"
(propertyName) =>
!tokenEndpoint.requestProperties.client_id.includes(propertyName) &&
!tokenEndpoint.requestProperties.client_secret.includes(propertyName) &&
(tokenEndpoint.requestProperties.scopes == null ||
!tokenEndpoint.requestProperties.scopes.includes(propertyName))
);

return {
Expand Down

0 comments on commit 8f5a7d9

Please sign in to comment.