Skip to content

Commit

Permalink
Authlete issuer with authorization code flow fails
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Feb 19, 2024
1 parent 3d7d1cf commit 63950cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/oidc4vc/lib/src/oidc4vc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ class OIDC4VC {
'code': code,
'grant_type': 'authorization_code',
'code_verifier': codeVerifier,
'redirect_uri': redirectUri,
'redirect_uri': redirectUri,
};
} else {
throw Exception();
Expand Down Expand Up @@ -1090,7 +1090,7 @@ class OIDC4VC {
required OIDC4VCIDraftType oidc4vciDraftType,
String? cnonce,
}) async {
final iat = (DateTime.now().millisecondsSinceEpoch / 1000).round();
final iat = (DateTime.now().millisecondsSinceEpoch / 1000).round() - 30;

var iss = tokenParameters.did;

Expand Down Expand Up @@ -1142,7 +1142,6 @@ class OIDC4VC {
return tokenResponse.data;
}


Future<String> extractVpToken({
required String clientId,
required String nonce,
Expand Down

0 comments on commit 63950cb

Please sign in to comment.