diff --git a/src/authenticationProvider.ts b/src/authenticationProvider.ts index 7ff0b68..31a8030 100644 --- a/src/authenticationProvider.ts +++ b/src/authenticationProvider.ts @@ -225,7 +225,7 @@ export class ServerManagerAuthenticationProvider implements AuthenticationProvid serverSpec.username = session.userName; serverSpec.password = session.accessToken; const response = await makeRESTRequest("HEAD", serverSpec).catch(() => { /* Swallow errors */ }); - if (response?.status != 200) { + if (response?.status == 401) { await this._removeSession(session.id, true); return false; }