Skip to content

Commit

Permalink
fix: Solve issuance issue #3003
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Oct 28, 2024
1 parent eb081c5 commit bf0975a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CredentialSubjectModel {
}

final String? id;
final String? type;
final dynamic type;
@JsonKey(fromJson: fromJsonAuthor)
final Author? issuedBy;
@JsonKey(fromJson: fromJsonAuthor, includeIfNull: false)
Expand All @@ -35,7 +35,7 @@ class CredentialSubjectModel {

CredentialSubjectModel copyWith({
String? id,
String? type,
dynamic type,
Author? issuedBy,
Author? offeredBy,
CredentialSubjectType? credentialSubjectType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class _SelectiveDisclosurePickViewState
selectedSDIndexInJWT: state.selectedSDIndexInJWT,
uri: widget.uri,
),
text: l10n.credentialPickPresent,
text: l10n.credentialPickShare,
);
},
),
Expand Down
4 changes: 2 additions & 2 deletions packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ class OIDC4VC {
'aud': tokenParameters.audience,
'exp': iat + 1000,
'sub': tokenParameters.did,
'iss': tokenParameters.did,
//'iss': tokenParameters.did,
'vp': {
'@context': ['https://www.w3.org/2018/credentials/v1'],
'id': presentationId,
Expand Down Expand Up @@ -1709,7 +1709,7 @@ class OIDC4VC {
'aud': tokenParameters.audience, // devrait être verifier
'exp': iat + 1000,
'sub': issAndSub,
'iss': issAndSub,
// 'iss': issAndSub,
};

if (tokenParameters.nonce != null) {
Expand Down

0 comments on commit bf0975a

Please sign in to comment.