From ace8a787b4ff3486cc2a7d4dbacc73aaa440e7b8 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 12 Jun 2020 20:06:58 +0100 Subject: [PATCH] undo that because `{}` sux --- src/interactive-auth.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/interactive-auth.js b/src/interactive-auth.js index b7e99b3d9..edf5a4290 100644 --- a/src/interactive-auth.js +++ b/src/interactive-auth.js @@ -148,7 +148,14 @@ InteractiveAuth.prototype = { // if we have no flows, try a request to acquire the flows if (!hasFlows) { if (this._busyChangedCallback) this._busyChangedCallback(true); - this._doRequest(this._data || null).finally(() => { + // use the existing sessionid, if one is present. + let auth = null; + if (this._data.session) { + auth = { + session: this._data.session, + }; + } + this._doRequest(auth).finally(() => { if (this._busyChangedCallback) this._busyChangedCallback(false); }); } else {