From da9acc10962cfffa4cf9ffc5cb797daacc43c0a6 Mon Sep 17 00:00:00 2001 From: Justin Helmer Date: Wed, 19 Aug 2026 17:23:56 -0700 Subject: [PATCH] fix: separate Google and GitHub sign-in options in auth login The combined 'GitHub or Google (browser)' picker entry becomes two first-class options, Google and GitHub, matching auth signup's labels. The chosen provider rides BrowserFlowOptions.provider into the browser OAuth flow. Co-Authored-By: Claude Fable 5 --- src/commands/auth/login.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/commands/auth/login.ts b/src/commands/auth/login.ts index 852dc98..25870fc 100644 --- a/src/commands/auth/login.ts +++ b/src/commands/auth/login.ts @@ -208,11 +208,12 @@ export const authLoginCommand: Command = { // The one and only method question — the flow signs you up when the // account doesn't exist yet, so the label says so. - const method = await promptSelect<'browser' | 'email' | 'device' | 'api-key'>( + const method = await promptSelect<'google' | 'github' | 'email' | 'device' | 'api-key'>( { nonInteractive: config.nonInteractive }, 'Sign in (or sign up) with', [ - { value: 'browser', label: 'GitHub or Google (browser)', hint: 'Recommended' }, + { value: 'google', label: 'Google', hint: 'opens your browser' }, + { value: 'github', label: 'GitHub', hint: 'opens your browser' }, { value: 'email', label: 'Email' }, { value: 'device', label: 'Device code', hint: 'no browser on this machine' }, { value: 'api-key', label: 'API key', hint: 'For scripts / CI' }, @@ -235,7 +236,7 @@ export const authLoginCommand: Command = { return; } - await oauthLogin(config, true); + await oauthLogin(config, true, { provider: method }); // Suppress unused-variable lint when we don't use args later void flags;