From bdae9521cb4f5d55a1feb906cf6f7b5b8e443a60 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 1 Mar 2017 17:35:18 +0000 Subject: [PATCH] Copy session ID too --- src/interactive-auth.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); },