diff --git a/src/interactive-auth.js b/src/interactive-auth.js index 135760d99..dddae0f5e 100644 --- a/src/interactive-auth.js +++ b/src/interactive-auth.js @@ -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(); },