@verdocs/js-sdk 4.2.73 → 4.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1287,7 +1287,7 @@ class VerdocsEndpoint {
|
|
|
1287
1287
|
if (this.persist) {
|
|
1288
1288
|
localStorage.setItem(this.sessionStorageKey(), token);
|
|
1289
1289
|
}
|
|
1290
|
-
if (this.sub !== session.sub) {
|
|
1290
|
+
if (!session.sub || this.sub !== session.sub) {
|
|
1291
1291
|
// The main purpose for this var is to prevent dupe getCurrentProfile calls and the trigger for the dupe
|
|
1292
1292
|
// is usually two components calling loadSession() at the same time to ensure we've done all we could
|
|
1293
1293
|
// to load it. We expose it in case it's useful, but have to set it here instead of in the async callbacks
|