(serverName: string)
| 363 | |
| 364 | /** True if this server has persisted OAuth tokens (i.e. already authenticated). */ |
| 365 | export function hasStoredAuth(serverName: string): boolean { |
| 366 | const store = readAuthStore(serverName) |
| 367 | return Boolean(store && store.tokens && store.tokens.access_token) |
| 368 | } |
| 369 | |
| 370 | /** Lets the caller intercept the interactive OAuth flow: surface the auth URL |
| 371 | * in the TUI and provide the authorization code (from the callback server or |
no test coverage detected