Skip to content

Commit

Permalink
refactor: fix jwt scope issue (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun authored Dec 4, 2024
1 parent 4b621ad commit de2d8fd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/models/formats/jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,19 @@ export default (provider, { opaque }) => {
iat,
exp,
authorization_details: rar,
scope: scope || undefined,
// The following line is the upstream code that introduces a breaking change without a major
// version bump. We are reverting this change to maintain compatibility with the previous
// version of the library.
//
// Keep the original line commented out for reference.
//// The following line is the upstream code that introduces a breaking change without a major
// version bump. We are reverting this change to maintain compatibility with the previous
// version of the library.
//
// Keep the original line commented out for reference.
//
// scope: scope || undefined,
scope: scope,
client_id: clientId,
iss: provider.issuer,
aud,
Expand Down

0 comments on commit de2d8fd

Please sign in to comment.