Archived
1
0

fix: logout appearing with auth=none (#5449)

This commit is contained in:
Asher
2022-08-11 13:26:47 -05:00
committed by GitHub
parent 2ec1e2de34
commit 17aaa8b347
3 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ Index: code-server/lib/vscode/src/vs/server/node/webClientServer.ts
codeServerVersion: this._productService.codeServerVersion,
rootEndpoint: base,
updateEndpoint: !this._environmentService.args['disable-update-check'] ? base + '/update/check' : undefined,
+ logoutEndpoint: this._environmentService.args['auth'] ? base + '/logout' : undefined,
+ logoutEndpoint: this._environmentService.args['auth'] && this._environmentService.args['auth'] !== "none" ? base + '/logout' : undefined,
embedderIdentifier: 'server-distro',
extensionsGallery: this._productService.extensionsGallery,
},