fix(kosync): CWA sometimes sends 400 for auth failure (#3893)

This commit is contained in:
Zach Bean
2026-04-18 10:55:33 -05:00
committed by GitHub
parent b223ccaee9
commit e8f6db96e4
@@ -95,7 +95,8 @@ export class KOSyncClient {
};
let response = await attempt();
if (response.status === 401) {
// some versions of CWA return status code 400 for auth failure, so check for both.
if (response.status === 401 || response.status === 400) {
// traditional auth failed; attempt one more time with HTTP auth
this.usesHttpAuth = true;