@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
package/src/mixins/auth.mixin.js
CHANGED
|
@@ -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
|
},
|