@vocollege/app 0.0.85 → 0.0.87

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.
@@ -318,8 +318,9 @@ var VoAuth = /** @class */ (function (_super) {
318
318
  VoConfig_1.default.get.AUTH_STORAGE_REFRESH_TOKEN,
319
319
  VoConfig_1.default.get.AUTH_STORAGE_ACCESS_TOKEN,
320
320
  ].indexOf(cookieName) === -1) {
321
+ js_cookie_1.default.remove(cookieName);
321
322
  js_cookie_1.default.remove(cookieName, {
322
- domain: VoConfig_1.default.get.AUTH_DOMAIN,
323
+ domain: ".".concat(VoConfig_1.default.get.AUTH_DOMAIN),
323
324
  });
324
325
  }
325
326
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -217,13 +217,15 @@ class VoAuth extends VoBase {
217
217
  VoConfig.get.AUTH_STORAGE_ACCESS_TOKEN,
218
218
  ].indexOf(cookieName) === -1
219
219
  ) {
220
+ JsCookies.remove(cookieName);
220
221
  JsCookies.remove(cookieName, {
221
- domain: VoConfig.get.AUTH_DOMAIN,
222
+ domain: `.${VoConfig.get.AUTH_DOMAIN}`,
222
223
  });
223
224
  }
224
225
  }
225
226
 
226
227
  const token = this.getToken();
228
+
227
229
  if (token) {
228
230
  try {
229
231
  this.setSession(token);