@zerosls/clm-sdk 2.0.0 → 2.1.1
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.
|
@@ -61,13 +61,15 @@ export class AuthApi {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
isAuthenticated() {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
//isAuthenticated(): boolean {
|
|
65
|
+
// const hasToken = this.apiClient.getToken() !== null;
|
|
66
|
+
// const hasLegacy =
|
|
67
|
+
// (typeof sessionStorage !== "undefined" &&
|
|
68
|
+
// !!sessionStorage.getItem("legacy_token")) ||
|
|
69
|
+
// (typeof window !== "undefined" && !!(window as any).__LEGACY_TOKEN__);
|
|
70
|
+
//
|
|
71
|
+
// return hasToken || hasLegacy;
|
|
72
|
+
//}
|
|
71
73
|
setToken(token) {
|
|
72
74
|
this.apiClient.setToken(token);
|
|
73
75
|
}
|
package/package.json
CHANGED
package/src/core/api-client.ts
CHANGED
|
@@ -83,15 +83,15 @@ export class AuthApi {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
isAuthenticated(): boolean {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
86
|
+
//isAuthenticated(): boolean {
|
|
87
|
+
// const hasToken = this.apiClient.getToken() !== null;
|
|
88
|
+
// const hasLegacy =
|
|
89
|
+
// (typeof sessionStorage !== "undefined" &&
|
|
90
|
+
// !!sessionStorage.getItem("legacy_token")) ||
|
|
91
|
+
// (typeof window !== "undefined" && !!(window as any).__LEGACY_TOKEN__);
|
|
92
|
+
//
|
|
93
|
+
// return hasToken || hasLegacy;
|
|
94
|
+
//}
|
|
95
95
|
|
|
96
96
|
setToken(token: string | null): void {
|
|
97
97
|
this.apiClient.setToken(token);
|