Ensure account preference set after login flow completes

This commit is contained in:
Rachel Macfarlane
2020-07-20 14:23:01 -07:00
parent cd5b4a7c80
commit 357fe6956c
3 changed files with 6 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ export class ExtHostAuthentication implements ExtHostAuthenticationShape {
}
const session = await provider.login(scopes);
await this._proxy.$setTrustedExtension(providerId, session.account.label, extensionId, extensionName);
await this._proxy.$setTrustedExtensionAndAccountPreference(providerId, session.account.label, extensionId, extensionName, session.id);
return session;
} else {
await this._proxy.$requestNewSession(providerId, scopes, extensionId, extensionName);