depend on redirect route within Microsoft auth (#145263)

* depend on redirect service

* better server query parameter handling
This commit is contained in:
Tyler James Leonhardt
2022-03-16 13:41:44 -07:00
committed by GitHub
parent 429a9d8ff1
commit 00888f774d
2 changed files with 55 additions and 33 deletions

View File

@@ -155,6 +155,10 @@ export class LoopbackAuthServer implements ILoopbackServer {
}
clearTimeout(portTimeout);
// set state which will be used to redirect back to vscode
this.state = `http://127.0.0.1:${this.port}/callback?nonce=${encodeURIComponent(this.nonce)}`;
resolve(this.port);
});
this._server.on('error', err => {