Skip to content

Commit 132d8e7

Browse files
authored
Ask developers to confirm GiF ToS in firebase login (#8644)
1 parent 344e9f2 commit 132d8e7

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/commands/login.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,24 @@ export const command = new Command("login")
3535

3636
if (!options.reauth) {
3737
utils.logBullet(
38-
"Firebase optionally collects CLI and Emulator Suite usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you.\n",
38+
"Firebase CLI integrates with Gemini in Firebase API to provide assistant features. Learn more about using Gemini in Firebase and how we train our models: https://firebase.google.com/docs/gemini-in-firebase/set-up-gemini#required-permissions",
39+
);
40+
const geminiUsage = await confirm("Enable Gemini in Firebase features?");
41+
configstore.set("gemini", geminiUsage);
42+
43+
logger.info();
44+
utils.logBullet(
45+
"Firebase optionally collects CLI and Emulator Suite usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you.",
3946
);
4047
const collectUsage = await confirm(
4148
"Allow Firebase to collect CLI and Emulator Suite usage and error reporting information?",
4249
);
4350
configstore.set("usage", collectUsage);
44-
if (collectUsage) {
51+
52+
if (geminiUsage || collectUsage) {
53+
logger.info();
4554
utils.logBullet(
46-
"To change your data collection preference at any time, run `firebase logout` and log in again.",
55+
"To change your the preference at any time, run `firebase logout` and `firebase login` again.",
4756
);
4857
}
4958
}

0 commit comments

Comments
 (0)