@verdocs/js-sdk 4.2.72 → 4.2.73
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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1291,11 +1291,11 @@ class VerdocsEndpoint {
|
|
|
1291
1291
|
// to load it. We expose it in case it's useful, but have to set it here instead of in the async callbacks
|
|
1292
1292
|
// even though their might be a brief window of time where it's set but something might go wrong (profile
|
|
1293
1293
|
// doesn't load) because we need it to serve that original purpose more.
|
|
1294
|
+
window?.console?.debug('[JS_SDK] userId changed, loading current profile...', this.endpointId, this.sub, session.sub);
|
|
1294
1295
|
this.sub = session.sub;
|
|
1295
|
-
window?.console?.debug('[JS_SDK] userId changed, loading current profile...', session.sub);
|
|
1296
1296
|
getCurrentProfile(this)
|
|
1297
1297
|
.then((r) => {
|
|
1298
|
-
window?.console?.debug('[JS_SDK] Loaded profile', r);
|
|
1298
|
+
window?.console?.debug('[JS_SDK] Loaded profile', this.endpointId, r);
|
|
1299
1299
|
this.profile = r || null;
|
|
1300
1300
|
this.notifySessionListeners();
|
|
1301
1301
|
})
|
|
@@ -1322,6 +1322,7 @@ class VerdocsEndpoint {
|
|
|
1322
1322
|
* Clear the active session.
|
|
1323
1323
|
*/
|
|
1324
1324
|
clearSession() {
|
|
1325
|
+
window?.console?.debug('[JS_SDK] Clearing session', this.endpointId);
|
|
1325
1326
|
if (this.persist) {
|
|
1326
1327
|
localStorage.removeItem(this.sessionStorageKey());
|
|
1327
1328
|
}
|
|
@@ -1338,6 +1339,7 @@ class VerdocsEndpoint {
|
|
|
1338
1339
|
* Clear the active signing session.
|
|
1339
1340
|
*/
|
|
1340
1341
|
clearSignerSession() {
|
|
1342
|
+
window?.console?.debug('[JS_SDK] Clearing signer session', this.endpointId);
|
|
1341
1343
|
if (this.persist) {
|
|
1342
1344
|
localStorage.removeItem(this.sessionStorageKey());
|
|
1343
1345
|
}
|