()
| 134 | } |
| 135 | |
| 136 | function stopOAuthServer() { |
| 137 | if (!oauthServer) return |
| 138 | oauthServer.close() |
| 139 | oauthServer = undefined |
| 140 | } |
| 141 | |
| 142 | function waitForOAuthCallback(state: string): Promise<ImplicitTokenPayload> { |
| 143 | return new Promise((resolve, reject) => { |