Skip to content

Commit

Permalink
Fix setting of scope
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgxvii committed Sep 25, 2024
1 parent cdf3e2e commit c3b9f89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/consent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
const acceptResponse = await hydra.acceptOAuth2ConsentRequest({
consentChallenge,
acceptOAuth2ConsentRequest: {
grant_scope: grantScope,
grant_scope: session.access_token.scope,
grant_access_token_audience: body.requested_access_token_audience,
session,
remember: Boolean(remember),
Expand Down

0 comments on commit c3b9f89

Please sign in to comment.