From fd50a99513809975cdfe44846860c45ea5060859 Mon Sep 17 00:00:00 2001 From: hawkbee1 Date: Thu, 12 Oct 2023 15:26:44 +0200 Subject: [PATCH] Normal credential offer should not go for openId conf --- lib/app/shared/helper_functions/helper_functions.dart | 3 ++- .../qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/app/shared/helper_functions/helper_functions.dart b/lib/app/shared/helper_functions/helper_functions.dart index 0ef77d76d..8e1149de5 100644 --- a/lib/app/shared/helper_functions/helper_functions.dart +++ b/lib/app/shared/helper_functions/helper_functions.dart @@ -509,7 +509,8 @@ Future 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( diff --git a/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart b/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart index dadbea1ce..3033985a2 100644 --- a/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart +++ b/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart @@ -64,6 +64,7 @@ class QRCodeScanCubit extends Cubit { final OIDC4VC oidc4vc; final log = getLogger('QRCodeScanCubit'); + late dynamic encodedData; @override Future close() async { @@ -213,8 +214,6 @@ class QRCodeScanCubit extends Cubit { } } - late dynamic encodedData; - Future accept({ required Issuer issuer, required QRCodeScanCubit qrCodeScanCubit,