@tapni/auth 0.0.86 → 0.0.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
package/src/App.vue CHANGED
@@ -32,7 +32,7 @@ document.addEventListener('DOMContentLoaded', function() {
32
32
  <AuthVerify v-else-if="initialized && renderView === 'AuthVerify'" :isModal="isModal" />
33
33
  <AuthReset v-else-if="initialized && renderView === 'AuthReset'" />
34
34
  <AuthCallback v-else-if="initialized && renderView === 'AuthCallback'" />
35
- <RouterView v-else name="authRouterView" />
35
+ <RouterView v-else-if="display !== 'npm'" />
36
36
 
37
37
  <div class="snackbar snackbar-boxed" id="snackbar">
38
38
  <p class="snack-body" id="errorSnack">
@@ -49,14 +49,10 @@ export default {
49
49
  }
50
50
  }
51
51
 
52
- console.log('before interceptor enter', storage, refreshTokenAction);
53
-
54
52
  // Check refresh token expiration before request is sent
55
53
  if (storage && storage.token && !refreshTokenAction) {
56
54
  const decoded = jwtDecode(storage.token)
57
55
 
58
- console.log('interceptor enter', decoded, decoded.exp - 30 < Math.floor(Date.now() / 1000));
59
-
60
56
  // Check if access token expired
61
57
  if (decoded.exp - 30 < Math.floor(Date.now() / 1000)) {
62
58