summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/components/AuthDialog.tsx
diff options
context:
space:
mode:
authorTommaso Sciortino <[email protected]>2025-06-25 15:38:18 -0700
committerGitHub <[email protected]>2025-06-25 22:38:18 +0000
commit79c647d486a5ef3cf9eb68f23000525e8d2c4a91 (patch)
tree43dab16125247ef844b8b46a403935356f98f4cd /packages/cli/src/ui/components/AuthDialog.tsx
parent00b24c917e6c6f5e059fec6cb0a5b55789fa1e1e (diff)
Merge "Login with Google Workspace" auth option into "Login with Google" (#1574)
Co-authored-by: Scott Densmore <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/components/AuthDialog.tsx')
-rw-r--r--packages/cli/src/ui/components/AuthDialog.tsx23
1 files changed, 1 insertions, 22 deletions
diff --git a/packages/cli/src/ui/components/AuthDialog.tsx b/packages/cli/src/ui/components/AuthDialog.tsx
index 747a83bd..f8ddfaed 100644
--- a/packages/cli/src/ui/components/AuthDialog.tsx
+++ b/packages/cli/src/ui/components/AuthDialog.tsx
@@ -29,32 +29,15 @@ export function AuthDialog({
const [errorMessage, setErrorMessage] = useState<string | null>(
initialErrorMessage || null,
);
- const allAuthItems = [
+ const items = [
{
label: 'Login with Google',
value: AuthType.LOGIN_WITH_GOOGLE_PERSONAL,
},
{ label: 'Gemini API Key', value: AuthType.USE_GEMINI },
- {
- label: 'Login with Google (for Workspace or licensed Code Assist users)',
- value: AuthType.LOGIN_WITH_GOOGLE_ENTERPRISE,
- },
{ label: 'Vertex AI', value: AuthType.USE_VERTEX_AI },
];
- const isSelectedAuthInMore = allAuthItems
- .slice(2)
- .some((item) => item.value === settings.merged.selectedAuthType);
-
- const [showAll, setShowAll] = useState(isSelectedAuthInMore);
-
- const initialAuthItems = [
- ...allAuthItems.slice(0, 2),
- { label: 'More...', value: 'more' },
- ];
-
- const items = showAll ? allAuthItems : initialAuthItems;
-
let initialAuthIndex = items.findIndex(
(item) => item.value === settings.merged.selectedAuthType,
);
@@ -64,10 +47,6 @@ export function AuthDialog({
}
const handleAuthSelect = (authMethod: string) => {
- if (authMethod === 'more') {
- setShowAll(true);
- return;
- }
const error = validateAuthMethod(authMethod);
if (error) {
setErrorMessage(error);