You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem with this is that the stored user session can't be reset by logging out in another tab. This code will never check the Panoptes API for a stale user session, as long as this._currentUserPromise is defined.
To test this out, run auth.checkCurrent() in two tabs, re-running it on visibility change, then log out in one of the tabs. The other tab will still return a Panoptes user from auth.checkCurrent(), even though its session cookie is no longer valid.
The text was updated successfully, but these errors were encountered:
auth.checkCurrent()
returns a cached_currentUserPromise
here, if it's already been set on page load.panoptes-javascript-client/lib/auth.js
Lines 169 to 186 in bbda9c2
The problem with this is that the stored user session can't be reset by logging out in another tab. This code will never check the Panoptes API for a stale user session, as long as
this._currentUserPromise
is defined.To test this out, run
auth.checkCurrent()
in two tabs, re-running it on visibility change, then log out in one of the tabs. The other tab will still return a Panoptes user fromauth.checkCurrent()
, even though its session cookie is no longer valid.The text was updated successfully, but these errors were encountered: