@iblai/web-utils 1.6.4 → 1.6.5

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.esm.js CHANGED
@@ -2854,8 +2854,9 @@ async function isDmTokenExpired(storageService) {
2854
2854
  * @returns boolean indicating if token is valid for current user
2855
2855
  */
2856
2856
  async function validateJwtToken(storageService) {
2857
+ let edxJwtToken;
2857
2858
  try {
2858
- const edxJwtToken = await storageService.getItem(LOCAL_STORAGE_KEYS.EDX_TOKEN_KEY);
2859
+ edxJwtToken = await storageService.getItem(LOCAL_STORAGE_KEYS.EDX_TOKEN_KEY);
2859
2860
  console.log("[AuthProvider] JWT token ", edxJwtToken);
2860
2861
  const userData = await storageService.getItem(LOCAL_STORAGE_KEYS.USER_DATA);
2861
2862
  if (!edxJwtToken || !userData) {
@@ -2872,7 +2873,7 @@ async function validateJwtToken(storageService) {
2872
2873
  return true;
2873
2874
  }
2874
2875
  catch (error) {
2875
- console.error("[AuthProvider] Error validating JWT token:", error);
2876
+ console.error("[AuthProvider] Error validating JWT token:", error, "Token is ", edxJwtToken);
2876
2877
  return false;
2877
2878
  }
2878
2879
  }