Skip to content

Commit

Permalink
feat: Remove registration for developer mode #3008
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Nov 4, 2024
1 parent d17fdcd commit 3ab5466
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/app/shared/helper_functions/helper_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1428,22 +1428,14 @@ Future<String> getFormattedStringOIDC4VPSIOPV2({
uri: Uri.parse(url),
);

final registration = Uri.parse(url).queryParameters['registration'];

final registrationMap = registration != null
? jsonDecode(registration) as Map<String, dynamic>
: null;

final data = '''
<b>SCHEME :</b> ${getSchemeFromUrl(url)}\n
<b>AUTHORIZATION REQUEST :</b>
${response != null ? const JsonEncoder.withIndent(' ').convert(response) : Uri.decodeComponent(url)}\n
<b>CLIENT METADATA :</b>
${clientMetaData != null ? const JsonEncoder.withIndent(' ').convert(clientMetaData) : 'None'}\n
<b>PRESENTATION DEFINITION :</b>
${presentationDefinition != null ? const JsonEncoder.withIndent(' ').convert(presentationDefinition) : 'None'}\n
<b>REGISTRATION :</b>
${registrationMap != null ? const JsonEncoder.withIndent(' ').convert(registrationMap) : 'None'}
${presentationDefinition != null ? const JsonEncoder.withIndent(' ').convert(presentationDefinition) : 'None'}
''';

return data;
Expand Down

0 comments on commit 3ab5466

Please sign in to comment.