1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-09-10 17:31:53 +03:00

Copy session ID too

This commit is contained in:
David Baker
2017-03-01 17:35:18 +00:00
parent cb7fb6c7be
commit bdae9521cb

View File

@@ -241,8 +241,10 @@ InteractiveAuth.prototype = {
// doesn't look like an interactive-auth failure. fail the whole lot.
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.session) error.data.session = self._data.session;
self._data = error.data;
self._startNextAuthStage();
},