Skip to content

Commit

Permalink
Normal credential offer should not go for openId conf
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkbee1 committed Oct 12, 2023
1 parent 01b96c1 commit fd50a99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/app/shared/helper_functions/helper_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,8 @@ Future<OIDC4VCType?> getOIDC4VCTypeForIssuance({
if (keys.contains('issuer')) {
/// issuance case 1
issuer = uri.queryParameters['issuer'].toString();
} else if (keys.contains('credential_offer') ||
}
if (keys.contains('credential_offer') ||
keys.contains('credential_offer_uri')) {
/// issuance case 2
final dynamic credentialOfferJson = await getCredentialOfferJson(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class QRCodeScanCubit extends Cubit<QRCodeScanState> {
final OIDC4VC oidc4vc;

final log = getLogger('QRCodeScanCubit');
late dynamic encodedData;

@override
Future<void> close() async {
Expand Down Expand Up @@ -213,8 +214,6 @@ class QRCodeScanCubit extends Cubit<QRCodeScanState> {
}
}

late dynamic encodedData;

Future<void> accept({
required Issuer issuer,
required QRCodeScanCubit qrCodeScanCubit,
Expand Down

0 comments on commit fd50a99

Please sign in to comment.