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