Skip to content

Commit

Permalink
fix(app): Custom multiple scope update
Browse files Browse the repository at this point in the history
Signed-off-by: Talwinder kaur <[email protected]>
  • Loading branch information
Talwinder kaur committed Nov 20, 2023
1 parent ffd89f9 commit c3049d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions demo/app/lib/assets/customScopes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"abc": {
"address": "13457 street",
"name": "xyz User"
},
"test": {
"email": "[email protected]",
"name": "Test User"
Expand Down
3 changes: 1 addition & 2 deletions demo/app/lib/services/config_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ConfigService {
Future<Map<String, dynamic>> readCustomScopeConfig(List<Object?> customScopeList) async {
Map<String, dynamic> customScopeConfigList = {};
final String scopeConfigResponse = await rootBundle.loadString('lib/assets/customScopes.json');
final configDataResp = await json.decode(scopeConfigResponse);
final configDataResp = jsonDecode(scopeConfigResponse);

List<String> customScopeStr = customScopeList.cast<String>();
for (var customScope in customScopeStr) {
Expand All @@ -38,7 +38,6 @@ class ConfigService {
{customScope.toString(): jsonEncode(claimJSON)}
);
}
log('customScope config list $customScopeConfigList');
return customScopeConfigList;
}
}

0 comments on commit c3049d5

Please sign in to comment.