Skip to content

Commit ec9371b

Browse files
author
Rachel Macfarlane
authored
Set token if either the value or provider has changed (microsoft#96716)
1 parent 9e55819 commit ec9371b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/platform/authentication/common/authentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class AuthenticationTokenService extends Disposable implements IAuthentic
4646
}
4747

4848
async setToken(token: IUserDataSyncAuthToken | undefined): Promise<void> {
49-
if (token && this._token ? token.token !== this._token.token && token.authenticationProviderId !== this._token.authenticationProviderId : token !== this._token) {
49+
if (token && this._token ? token.token !== this._token.token || token.authenticationProviderId !== this._token.authenticationProviderId : token !== this._token) {
5050
this._token = token;
5151
this._onDidChangeToken.fire(token);
5252
}

0 commit comments

Comments
 (0)