@tapni/auth 0.0.82 → 0.0.84
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/TapniAuth.es.js +3 -3
- package/dist/TapniAuth.umd.js +6 -6
- package/package.json +1 -1
- package/src/App.vue +2 -3
- package/src/mixins/auth.mixin.js +1 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -136,11 +136,10 @@ export default {
|
|
|
136
136
|
const refreshTokens = this.getRefreshTokens();
|
|
137
137
|
this.setRefreshToken(refreshTokens[0]);
|
|
138
138
|
await this.getLoggedInAccounts();
|
|
139
|
-
EventBus.$emit("ssoEvent", { name: "setStorage", data: this.$storage });
|
|
140
|
-
|
|
139
|
+
// EventBus.$emit("ssoEvent", { name: "setStorage", data: this.$storage });
|
|
141
140
|
|
|
142
141
|
// Let App know that the auth is ready
|
|
143
|
-
this.$emit('ssoLibraryReady');
|
|
142
|
+
this.$emit('ssoLibraryReady', this.$storage);
|
|
144
143
|
},
|
|
145
144
|
ssoOutgoingEvent (data) {
|
|
146
145
|
this.$emit('ssoEvent', data)
|
package/src/mixins/auth.mixin.js
CHANGED
|
@@ -458,7 +458,7 @@ export default {
|
|
|
458
458
|
AuthService.getLoggedInAccounts({ refreshTokens }, this.$storage)
|
|
459
459
|
);
|
|
460
460
|
if (err) return this.errorHandler(err);
|
|
461
|
-
if (response.data.success) {
|
|
461
|
+
if (response && response.data && response.data.success) {
|
|
462
462
|
this.setLoggedInAccounts(response.data.accounts);
|
|
463
463
|
}
|
|
464
464
|
}
|