Skip to content

Commit

Permalink
fix: Solve issue for JsonPath with pre-authorized value
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Jun 18, 2024
1 parent 8e55c50 commit 627f7ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ class OIDC4VC {
/// authorization_server in credentialOfferJson
final jsonPathCredentialOffer = JsonPath(
// ignore: lines_longer_than_80_chars
r'$..authorized_code.authorization_server',
r'$..["urn:ietf:params:oauth:grant-type:pre-authorized_code"].authorization_server',
);
final data = jsonPathCredentialOffer
.read(credentialOfferJson)
Expand All @@ -915,7 +915,6 @@ class OIDC4VC {
}
} catch (e) {
final jsonPathCredentialOffer = JsonPath(
// ignore: lines_longer_than_80_chars
r'$..authorization_code.authorization_server',
);
final data = jsonPathCredentialOffer
Expand Down

0 comments on commit 627f7ef

Please sign in to comment.