fix: report unauthenticated auth state honestly #66

Merged
andres merged 4 commits from build/64-auth-state into main 2026-09-04 06:16:21 +00:00
Showing only changes of commit 1335232002 - Show all commits

View file

@ -87,7 +87,6 @@ test('auth logout identifies a supplied token that remains active without changi
const localOnly = run(['auth', 'logout', '--local-only'], { STOKE_CONFIG_FILE: cfg }); const localOnly = run(['auth', 'logout', '--local-only'], { STOKE_CONFIG_FILE: cfg });
assert.equal(localOnly.status, 0, localOnly.stderr); assert.equal(localOnly.status, 0, localOnly.stderr);
assert.equal(localOnly.stdout, 'Local credentials removed.\n'); assert.equal(localOnly.stdout, 'Local credentials removed.\n');
assert.equal(localOnly.stderr, '');
assert.equal(fs.existsSync(cfg), false); assert.equal(fs.existsSync(cfg), false);
} finally { } finally {
fs.rmSync(dir, { recursive: true, force: true }); fs.rmSync(dir, { recursive: true, force: true });