Skip to content

Commit

Permalink
feat: update auth config to clear key values when no value is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
sharjeelyunus committed Dec 19, 2024
1 parent 7bef38b commit 42edfea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions starter/scripts/modules/enable_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ void updateAuthConfig(String iOSClientId, String androidClientId,
RegExp('$key:\\s*.*', multiLine: true),
(match) => '$key: $value',
);
} else {
content = content.replaceAllMapped(
RegExp('$key:\\s*.*', multiLine: true),
(match) => '$key:',
);
}
});

Expand Down

0 comments on commit 42edfea

Please sign in to comment.