From d76a05952508129048cbb9e53a9939aa0be14229 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Sun, 26 Dec 2021 18:01:38 +0530 Subject: [PATCH] Temporary fix for 401 errors --- src/matrix/net/HomeServerRequest.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/matrix/net/HomeServerRequest.ts b/src/matrix/net/HomeServerRequest.ts index ea5d2e40..d9c31275 100644 --- a/src/matrix/net/HomeServerRequest.ts +++ b/src/matrix/net/HomeServerRequest.ts @@ -36,7 +36,10 @@ export class HomeServerRequest implements IHomeServerRequest { this._promise = sourceRequest.response().then(response => { log?.set("status", response.status); // ok? - if (response.status >= 200 && response.status < 300) { + // todo: register endpoint indicates our progress in using the user interactive + // authentication using 401 responses + // passing through all 401 responses as a temporary fix + if (response.status >= 200 && response.status < 300 || response.status === 401) { log?.finish(); return response.body; } else {