@tapni/auth 0.0.77 → 0.0.78

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.77",
3
+ "version": "0.0.78",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
@@ -244,6 +244,7 @@ export default {
244
244
  });
245
245
  },
246
246
  async refreshTokenAction(data) {
247
+ console.log('auth-refreshTokenAction', data);
247
248
  if (!this.refreshToken || this.refreshing) {
248
249
  console.log('return-refreshTokenAction', this.refreshToken, this.refreshing);
249
250
  return;
@@ -265,6 +266,7 @@ export default {
265
266
  // Set new access token
266
267
  if (response && response.data) {
267
268
  this.setToken(response.data.token);
269
+ EventBus.$emit("ssoEvent", { name: "setStorage", data: this.$storage });
268
270
  } else console.error('Invalid response setToken');
269
271
  this.refreshing = false;
270
272
  },