You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Copy session ID too
This commit is contained in:
@@ -241,8 +241,10 @@ InteractiveAuth.prototype = {
|
|||||||
// doesn't look like an interactive-auth failure. fail the whole lot.
|
// doesn't look like an interactive-auth failure. fail the whole lot.
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
// if the error didn't come with flows, copy over the ones we have
|
// if the error didn't come with flows or session ID,
|
||||||
|
// copy over the ones we have
|
||||||
if (!error.data.flows) error.data.flows = self._data.flows;
|
if (!error.data.flows) error.data.flows = self._data.flows;
|
||||||
|
if (!error.data.session) error.data.session = self._data.session;
|
||||||
self._data = error.data;
|
self._data = error.data;
|
||||||
self._startNextAuthStage();
|
self._startNextAuthStage();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user