Skip to content

Commit

Permalink
fix: Fixed Json reading bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Aug 13, 2023
1 parent 6e0d2a6 commit 61fbfe6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/katana_cli/lib/action/firebase/authentication.dart
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,10 @@ class FirebaseAuthenticationCliAction extends CliCommand with CliActionMixin {
await googleServicesJson.readAsString(),
);
final oauthClient = googleServices
.getAsMap("client")
.getAsList("oauth_client")
.getAsList("client")
.cast<DynamicMap>()
.firstOrNull
?.getAsList("oauth_client")
.cast<DynamicMap>()
.firstWhereOrNull((item) => item.get("client_type", 0) == 3);
final clientId = oauthClient.get("client_id", "");
Expand Down

0 comments on commit 61fbfe6

Please sign in to comment.