()
| 408 | } |
| 409 | |
| 410 | function stopOAuthServer() { |
| 411 | if (oauthServer) { |
| 412 | oauthServer.close() |
| 413 | oauthServer = undefined |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | function waitForOAuthCallback(pkce: PkceCodes, state: string): Promise<TokenResponse> { |
| 418 | // A previous in-flight authorize() that the user abandoned (or that is |