(server: Server)
| 91 | } |
| 92 | |
| 93 | function closeServer(server: Server): Promise<void> { |
| 94 | return new Promise((resolve) => { |
| 95 | if (!server.listening) { |
| 96 | resolve(); |
| 97 | return; |
| 98 | } |
| 99 | server.close(() => resolve()); |
| 100 | }); |
| 101 | } |
| 102 | |
| 103 | function buildBrowserLoginURL(apiUrl: string, callbackUrl: string, cliState: string): string { |
| 104 | const loginUrl = new URL("/api/auth/login", apiUrl); |
no test coverage detected