@vocollege/app 0.0.69 → 0.0.71

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.
@@ -236,7 +236,10 @@ var VoAuth = /** @class */ (function (_super) {
236
236
  VoAuth.prototype.resetSession = function () {
237
237
  var refreshTokenKey = VoConfig_1.default.get.AUTH_STORAGE_REFRESH_TOKEN || "";
238
238
  Helpers.localStorage.remove(refreshTokenKey);
239
- js_cookie_1.default.remove(refreshTokenKey, { domain: VoConfig_1.default.get.AUTH_DOMAIN });
239
+ js_cookie_1.default.remove(refreshTokenKey, {
240
+ domain: VoConfig_1.default.get.AUTH_DOMAIN,
241
+ sameSite: "Lax",
242
+ });
240
243
  var accessTokenKey = VoConfig_1.default.get.AUTH_STORAGE_ACCESS_TOKEN || "";
241
244
  Helpers.localStorage.remove(accessTokenKey);
242
245
  js_cookie_1.default.remove(accessTokenKey, {
@@ -63,7 +63,6 @@ var VoRouter = /** @class */ (function () {
63
63
  }
64
64
  };
65
65
  VoRouter.prototype.redirectToHome = function () {
66
- // window.location.href = VoConfig.getConfigByKey('app').HOME;
67
66
  window.location.href = VoConfig_1.default.get.HOME || "";
68
67
  };
69
68
  VoRouter.prototype.pathIsActive = function (to) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocollege/app",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -143,7 +143,10 @@ class VoAuth extends VoBase {
143
143
  resetSession() {
144
144
  let refreshTokenKey = VoConfig.get.AUTH_STORAGE_REFRESH_TOKEN || "";
145
145
  Helpers.localStorage.remove(refreshTokenKey);
146
- JsCookies.remove(refreshTokenKey, { domain: VoConfig.get.AUTH_DOMAIN });
146
+ JsCookies.remove(refreshTokenKey, {
147
+ domain: VoConfig.get.AUTH_DOMAIN,
148
+ sameSite: "Lax",
149
+ });
147
150
 
148
151
  let accessTokenKey = VoConfig.get.AUTH_STORAGE_ACCESS_TOKEN || "";
149
152
  Helpers.localStorage.remove(accessTokenKey);
@@ -63,7 +63,6 @@ class VoRouter {
63
63
  }
64
64
  }
65
65
  redirectToHome() {
66
- // window.location.href = VoConfig.getConfigByKey('app').HOME;
67
66
  window.location.href = VoConfig.get.HOME || "";
68
67
  }
69
68
  pathIsActive(to: string): boolean {