Skip to content

Commit

Permalink
feat: iss and sub are same #1780
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Aug 14, 2023
1 parent 66efe59 commit 9659180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ class OIDC4VC {
'iat': DateTime.now().microsecondsSinceEpoch,
'aud': tokenParameters.audience, // devrait être verifier
'exp': DateTime.now().microsecondsSinceEpoch + 1000,
'sub': tokenParameters.did,
'sub': isSIOPV2Only ? tokenParameters.did : 'https://self-issued.me/v2',
'iss': isSIOPV2Only ? tokenParameters.did : 'https://self-issued.me/v2',
'nonce': tokenParameters.nonce,
};
Expand Down

0 comments on commit 9659180

Please sign in to comment.