You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Keep data from response in any case
Fix up flows if they're absent
This commit is contained in:
@@ -241,7 +241,9 @@ InteractiveAuth.prototype = {
|
||||
// doesn't look like an interactive-auth failure. fail the whole lot.
|
||||
throw error;
|
||||
}
|
||||
if (errorFlows) self._data = error.data;
|
||||
// if the error didn't come with flows, copy over the ones we have
|
||||
if (!error.data.flows) error.data.flows = self._data.flows;
|
||||
self._data = error.data;
|
||||
self._startNextAuthStage();
|
||||
},
|
||||
);
|
||||
|
Reference in New Issue
Block a user