1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-06 12:02:40 +03:00

End authentication attempt immediately if we couldn't find an appropriate flow (#2008)

If `doRequest()` in `interactive-auth.ts` fails to obtain an appropriate authentication flow, it should return immediately after rejecting the promise.  If it continues, it'll attempt to check `chosenFlow.stages`, which will cause an error because `chosenFlow` is `null`.  This was breaking the interactive auth spec tests with Node 16.
This commit is contained in:
Faye Duxovni
2021-11-02 10:40:46 -04:00
committed by GitHub
parent fe8b9eca8e
commit 50332c4999

View File

@@ -449,6 +449,7 @@ export class InteractiveAuth {
} catch (e) {
this.attemptAuthDeferred.reject(e);
this.attemptAuthDeferred = null;
return;
}
if (