longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
15 lines • 746 B
TypeScript
import { createOAuthManager } from '../../auth/oauth';
export declare function readTokens(): unknown | null;
export declare function saveTokens(tokens: unknown): void;
/**
* Refreshes stored tokens if present, otherwise walks the user through the interactive
* browser OAuth flow. Shared by every CLI command that needs to talk to the Sheets API
* (auth, sync, drop-table, drop-column, rename-column).
*
* @param options.force Skip the stored refresh token and force a fresh consent screen even if
* a valid one is on disk — used by `lsdb auth --force`.
*/
export declare function resolveTokens(oauth: ReturnType<typeof createOAuthManager>, options?: {
force?: boolean;
}): Promise<unknown>;
//# sourceMappingURL=oauthFlow.d.ts.map