mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 11:04:42 -07:00
feat(core): remove unnecessary login verbiage from Code Assist auth (#19861)
This commit is contained in:
@@ -15,7 +15,9 @@ import { isHeadlessMode } from './headless.js';
|
||||
* Handles both interactive and non-interactive (headless) modes.
|
||||
*/
|
||||
export async function getConsentForOauth(prompt: string): Promise<boolean> {
|
||||
const finalPrompt = prompt + ' Opening authentication page in your browser. ';
|
||||
const finalPrompt =
|
||||
(prompt ? prompt + ' ' : '') +
|
||||
'Opening authentication page in your browser. ';
|
||||
|
||||
if (isHeadlessMode()) {
|
||||
return getOauthConsentNonInteractive(finalPrompt);
|
||||
|
||||
Reference in New Issue
Block a user