Skip to content

Commit

Permalink
feat: add skip consent for OAuth2 client (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorgagu authored Jun 27, 2023
1 parent e4e99b7 commit eb0af2a
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 eb0af2a

Please sign in to comment.