Await the authorization code from the browser redirect or a manual paste.
()
| 182 | |
| 183 | /** Await the authorization code from the browser redirect or a manual paste. */ |
| 184 | waitForCode(): Promise<string> { |
| 185 | return new Promise<string>((resolve) => { |
| 186 | this.codeResolve = resolve |
| 187 | }) |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | /** Start a one-shot loopback HTTP server to receive the OAuth redirect. */ |