diff --git a/packages/core/src/browser/authentication-service.ts b/packages/core/src/browser/authentication-service.ts index 07d99f9d21e75..403598899f497 100644 --- a/packages/core/src/browser/authentication-service.ts +++ b/packages/core/src/browser/authentication-service.ts @@ -302,7 +302,7 @@ export class AuthenticationServiceImpl implements AuthenticationService { } // And also set it as the preferred account for the extension - this.storageService.setData(`authentication-${extensionName}-${providerId}`, session.id); + this.storageService.setData(`authentication-session-${extensionName}-${providerId}`, session.id); } }); diff --git a/packages/plugin-ext/src/main/browser/authentication-main.ts b/packages/plugin-ext/src/main/browser/authentication-main.ts index 26eaddcc2d829..f9051bcb7565e 100644 --- a/packages/plugin-ext/src/main/browser/authentication-main.ts +++ b/packages/plugin-ext/src/main/browser/authentication-main.ts @@ -169,6 +169,8 @@ export class AuthenticationMainImpl implements AuthenticationMain { allowList.push({ id: extensionId, name: extensionName }); this.storageService.setData(`authentication-trusted-extensions-${providerId}-${accountName}`, JSON.stringify(allowList)); } + + this.storageService.setData(`authentication-session-${extensionName}-${providerId}`, sessionId); } }