@trudb/tru-common-lib 0.0.723 → 0.0.724

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.
@@ -6018,7 +6018,7 @@ class TruAuthJwtStrategy {
6018
6018
  }
6019
6019
  }
6020
6020
  getDecodedJwtJsonData() {
6021
- let token = JSON.parse(localStorage.getItem(this.JWT_ACCESS_TOKEN));
6021
+ let token = this.getJwtToken();
6022
6022
  let payload = {};
6023
6023
  if (token && token !== "undefined") {
6024
6024
  const encodedPayload = token.split(".")[1];
@@ -6028,7 +6028,7 @@ class TruAuthJwtStrategy {
6028
6028
  return payload;
6029
6029
  }
6030
6030
  getToken() {
6031
- var token = JSON.parse(localStorage.getItem(this.JWT_ACCESS_TOKEN));
6031
+ var token = this.getJwtToken();
6032
6032
  if (token && token !== "undefined") {
6033
6033
  const encodedPayload = token.split(".")[1];
6034
6034
  const payloadStr = window.atob(encodedPayload);