Skip to content

Commit

Permalink
feat: add skip consent for OAuth2 client
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorgagu committed Jun 27, 2023
1 parent 1c8417c commit e2aa830
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/consent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const createConsentRoute: RouteCreator =
// If a user has granted this application the requested scope, hydra will tell us to not show the UI.
if (
body.skip ||
body.client?.skip_consent ||
(body.client?.client_id &&
trustedClients.indexOf(body.client?.client_id) > -1)
) {
Expand Down

0 comments on commit e2aa830

Please sign in to comment.