@vocollege/app 0.0.93 → 0.0.94
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/modules/VoAuth.js
CHANGED
|
@@ -328,7 +328,9 @@ var VoAuth = /** @class */ (function (_super) {
|
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
+
console.log("VoAuth.check() before");
|
|
331
332
|
token = this.getToken();
|
|
333
|
+
console.log("VoAuth.check() token", token);
|
|
332
334
|
if (!token) return [3 /*break*/, 5];
|
|
333
335
|
_a.label = 1;
|
|
334
336
|
case 1:
|
package/dist/modules/VoBase.js
CHANGED
|
@@ -9,6 +9,7 @@ var VoBase = /** @class */ (function () {
|
|
|
9
9
|
this.configKey = key;
|
|
10
10
|
}
|
|
11
11
|
VoBase.prototype.checkConfig = function () {
|
|
12
|
+
console.log("VoBase.checkConfig() VoConfig.get", VoConfig_1.default.get);
|
|
12
13
|
if (VoConfig_1.default.get.BASE_URL === "") {
|
|
13
14
|
throw new Error("VoApp is not configured properly. You need to initiate it with VoApp.configure() method.");
|
|
14
15
|
}
|
package/dist/modules/VoRouter.js
CHANGED
|
@@ -48,6 +48,7 @@ var VoRouter = /** @class */ (function () {
|
|
|
48
48
|
};
|
|
49
49
|
VoRouter.prototype.redirectToLogout = function () {
|
|
50
50
|
var webUrl = [];
|
|
51
|
+
console.log("redirectToLogout VoConfig.get", VoConfig_1.default.get);
|
|
51
52
|
if (VoConfig_1.default.get.AUTH_BASE_URL) {
|
|
52
53
|
webUrl.push(VoConfig_1.default.get.AUTH_BASE_URL + "/logout");
|
|
53
54
|
var redirectTo = js_cookie_1.default.get("voapp_redirectTo") || VoConfig_1.default.get.BASE_URL;
|
package/package.json
CHANGED
package/src/modules/VoAuth.ts
CHANGED
|
@@ -227,8 +227,12 @@ class VoAuth extends VoBase {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
console.log("VoAuth.check() before");
|
|
231
|
+
|
|
230
232
|
const token = this.getToken();
|
|
231
233
|
|
|
234
|
+
console.log("VoAuth.check() token", token);
|
|
235
|
+
|
|
232
236
|
if (token) {
|
|
233
237
|
try {
|
|
234
238
|
this.setSession(token, forceLoad);
|
package/src/modules/VoBase.ts
CHANGED
|
@@ -6,6 +6,8 @@ class VoBase {
|
|
|
6
6
|
this.configKey = key;
|
|
7
7
|
}
|
|
8
8
|
checkConfig() {
|
|
9
|
+
console.log("VoBase.checkConfig() VoConfig.get", VoConfig.get);
|
|
10
|
+
|
|
9
11
|
if (VoConfig.get.BASE_URL === "") {
|
|
10
12
|
throw new Error(
|
|
11
13
|
"VoApp is not configured properly. You need to initiate it with VoApp.configure() method."
|
package/src/modules/VoRouter.ts
CHANGED
|
@@ -48,6 +48,9 @@ class VoRouter {
|
|
|
48
48
|
}
|
|
49
49
|
redirectToLogout() {
|
|
50
50
|
const webUrl = [];
|
|
51
|
+
|
|
52
|
+
console.log("redirectToLogout VoConfig.get", VoConfig.get);
|
|
53
|
+
|
|
51
54
|
if (VoConfig.get.AUTH_BASE_URL) {
|
|
52
55
|
webUrl.push(VoConfig.get.AUTH_BASE_URL + "/logout");
|
|
53
56
|
let redirectTo = Cookies.get("voapp_redirectTo") || VoConfig.get.BASE_URL;
|