longcelot-sheet-db
Version:
Google Sheets-backed staging database adapter for Node.js with schema-first design
13 lines • 857 B
TypeScript
/**
* Best-effort automatic capture of the OAuth authorization code: spins up a temporary HTTP
* server on the CLI's configured redirect URI and waits for Google's browser redirect to hit
* it directly, so the user never has to copy the `code` out of the browser's address bar and
* paste it back into the terminal by hand.
*
* Returns null — and never throws — whenever automatic capture isn't possible or doesn't
* complete (non-loopback redirect URI, the port already being in use, the user closing the tab,
* a timeout, etc). `resolveTokens()` falls back to the pre-existing manual-paste prompt in every
* such case, so this is purely additive: nothing changes for a caller that gets null back.
*/
export declare function tryCaptureViaLoopback(redirectUri: string): Promise<string | null>;
//# sourceMappingURL=oauthCallbackServer.d.ts.map