move to using an id token for settings sync

上级 4cf81a2a
......@@ -1544,6 +1544,7 @@ export interface AuthenticationSession {
id: string;
}
scopes: ReadonlyArray<string>;
idToken?: string;
}
/**
......
......@@ -58,7 +58,7 @@ class UserDataSyncAccount implements IUserDataSyncAccount {
get sessionId(): string { return this.session.id; }
get accountName(): string { return this.session.account.label; }
get accountId(): string { return this.session.account.id; }
get token(): string { return this.session.accessToken; }
get token(): string { return this.session.idToken || this.session.accessToken; }
}
export class UserDataSyncWorkbenchService extends Disposable implements IUserDataSyncWorkbenchService {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册