@nocios/crudify-ui 1.0.84 → 1.0.85
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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2674,7 +2674,7 @@ var _TokenManager = class _TokenManager {
|
|
|
2674
2674
|
* Parse the current JWT token
|
|
2675
2675
|
*/
|
|
2676
2676
|
parseToken(token) {
|
|
2677
|
-
const targetToken = token || this.
|
|
2677
|
+
const targetToken = token || this.tokenCache;
|
|
2678
2678
|
if (!targetToken) {
|
|
2679
2679
|
return null;
|
|
2680
2680
|
}
|
|
@@ -2691,7 +2691,7 @@ var _TokenManager = class _TokenManager {
|
|
|
2691
2691
|
* Check if a token is valid (properly formatted and not expired)
|
|
2692
2692
|
*/
|
|
2693
2693
|
isTokenValid(token) {
|
|
2694
|
-
const targetToken = token || this.
|
|
2694
|
+
const targetToken = token || this.tokenCache;
|
|
2695
2695
|
if (!targetToken) {
|
|
2696
2696
|
return false;
|
|
2697
2697
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2639,7 +2639,7 @@ var _TokenManager = class _TokenManager {
|
|
|
2639
2639
|
* Parse the current JWT token
|
|
2640
2640
|
*/
|
|
2641
2641
|
parseToken(token) {
|
|
2642
|
-
const targetToken = token || this.
|
|
2642
|
+
const targetToken = token || this.tokenCache;
|
|
2643
2643
|
if (!targetToken) {
|
|
2644
2644
|
return null;
|
|
2645
2645
|
}
|
|
@@ -2656,7 +2656,7 @@ var _TokenManager = class _TokenManager {
|
|
|
2656
2656
|
* Check if a token is valid (properly formatted and not expired)
|
|
2657
2657
|
*/
|
|
2658
2658
|
isTokenValid(token) {
|
|
2659
|
-
const targetToken = token || this.
|
|
2659
|
+
const targetToken = token || this.tokenCache;
|
|
2660
2660
|
if (!targetToken) {
|
|
2661
2661
|
return false;
|
|
2662
2662
|
}
|