Scotdensmore/first run auth fix (#1322)

This commit is contained in:
Scott Densmore
2025-06-22 22:52:25 -07:00
committed by GitHub
parent 156feff5b1
commit 99d521569d
3 changed files with 84 additions and 3 deletions

View File

@@ -78,6 +78,13 @@ export function AuthDialog({
useInput((_input, key) => {
if (key.escape) {
if (settings.merged.selectedAuthType === undefined) {
// Prevent exiting if no auth method is set
setErrorMessage(
'You must select an auth method to proceed. Press Ctrl+C twice to exit.',
);
return;
}
onSelect(undefined, SettingScope.User);
}
});