We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b98f647 commit 1251bf0Copy full SHA for 1251bf0
1 file changed
src/vs/workbench/api/browser/mainThreadAuthentication.ts
@@ -31,7 +31,13 @@ export class MainThreadAuthenticationProvider {
31
}
32
33
login(scopes: string[]): Promise<modes.AuthenticationSession> {
34
- return this._proxy.$login(this.id, scopes);
+ return this._proxy.$login(this.id, scopes).then(session => {
35
+ return {
36
+ id: session.id,
37
+ accountName: session.accountName,
38
+ accessToken: () => this._proxy.$getSessionAccessToken(this.id, session.id)
39
+ };
40
+ });
41
42
43
logout(accountId: string): Promise<void> {
0 commit comments