From 42edfeaeae3b53e6d0150fbfef8521c048c79069 Mon Sep 17 00:00:00 2001 From: Sharjeel Yunus <61178058+sharjeelyunus@users.noreply.github.com> Date: Fri, 20 Dec 2024 01:52:09 +0500 Subject: [PATCH] feat: update auth config to clear key values when no value is provided --- starter/scripts/modules/enable_auth.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/starter/scripts/modules/enable_auth.dart b/starter/scripts/modules/enable_auth.dart index 3cc3f7d86..073a58346 100644 --- a/starter/scripts/modules/enable_auth.dart +++ b/starter/scripts/modules/enable_auth.dart @@ -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:', + ); } });