From 8a128d8dc6c1c5d7aea7004e0efa9fd175be36e5 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Thu, 10 Jul 2025 18:59:02 -0700 Subject: Add NO_BROWSER environment variable to trigger offline oauth flow (#3713) --- packages/cli/src/ui/App.tsx | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'packages/cli/src/ui') diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index e3a5eb55..2a6bf088 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -728,13 +728,29 @@ const App = ({ config, settings, startupWarnings = [] }: AppProps) => { /> ) : isAuthenticating ? ( - { - setAuthError('Authentication timed out. Please try again.'); - cancelAuthentication(); - openAuthDialog(); - }} - /> + <> + { + setAuthError('Authentication timed out. Please try again.'); + cancelAuthentication(); + openAuthDialog(); + }} + /> + {showErrorDetails && ( + + + + + + + )} + ) : isAuthDialogOpen ? (