Remove deprecated authenticationSessionId from embedder API

This commit is contained in:
Rachel Macfarlane
2020-10-23 16:09:24 -07:00
parent 557371ff4d
commit 55e0bf2f82
2 changed files with 3 additions and 3 deletions

View File

@@ -155,8 +155,8 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
private async initialize(): Promise<void> {
const authenticationSession = this.environmentService.options?.credentialsProvider ? await getCurrentAuthenticationSessionInfo(this.environmentService, this.productService) : undefined;
if (this.currentSessionId === undefined && this.useWorkbenchSessionId && (authenticationSession?.id || this.environmentService.options?.authenticationSessionId)) {
this.currentSessionId = authenticationSession?.id || this.environmentService.options?.authenticationSessionId;
if (this.currentSessionId === undefined && this.useWorkbenchSessionId && (authenticationSession?.id)) {
this.currentSessionId = authenticationSession?.id;
this.useWorkbenchSessionId = false;
}