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 70d4b98bb..6355c1b50 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 @@ -531,7 +531,8 @@ class QRCodeScanCubit extends Cubit { } if (registration != null) { - queryJson['registration'] = registration; + queryJson['registration'] = + registration is Map ? jsonEncode(registration) : registration; } final String queryString = Uri(queryParameters: queryJson).query; @@ -553,6 +554,13 @@ class QRCodeScanCubit extends Cubit { final keys = []; state.uri?.queryParameters.forEach((key, value) => keys.add(key)); + if (keys.contains('claims')) { + /// claims is old standard + throw ResponseMessage( + message: ResponseString.RESPONSE_STRING_thisRequestIsNotSupported, + ); + } + if (!keys.contains('response_type')) { throw ResponseMessage( data: {