@tapni/auth 0.0.137 → 0.0.139

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.137",
3
+ "version": "0.0.139",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
package/src/store/auth.js CHANGED
@@ -481,11 +481,8 @@ export default {
481
481
  return response.data.success;
482
482
  },
483
483
  setLoggedInAccounts({ commit }, accounts) {
484
- let loggedInAccounts = {};
485
- accounts.forEach((account) => {
486
- loggedInAccounts[account.username] = account;
487
- });
488
- commit('setLoggedInAccounts', loggedInAccounts);
484
+ commit('setLoggedInAccounts', accounts);
485
+ EventBus.$emit("ssoEvent", { name: "setLoggedInAccounts", data: accounts });
489
486
  },
490
487
  setLoggedInUserId({ commit }, id) {
491
488
  commit('setLoggedInUserId', id);