refactor: improve sheet flow management

This commit is contained in:
Carlos Valente
2026-03-30 22:05:14 +02:00
committed by Carlos Valente
parent f53cb687bf
commit f739ba122b
18 changed files with 562 additions and 389 deletions
@@ -215,7 +215,7 @@ function verifyConnection(
export function hasAuth(): { authenticated: AuthenticationStatus; sheetId: string } {
if (!currentSheetId) {
throw new Error('No sheet ID');
return { authenticated: 'not_authenticated', sheetId: '' };
}
if (cleanupTimeout) {
return { authenticated: 'pending', sheetId: currentSheetId };