@tapni/auth 1.0.2 → 1.0.4
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/.vite/manifest.json +12 -12
- package/dist/{Account-IR-XgmiM.js → Account-zep_QUuI.js} +1 -1
- package/dist/{Apps-CQXLKu2F.js → Apps-B9XB7Z7q.js} +1 -1
- package/dist/{CustomApp-FxfYHVid.js → CustomApp-BzUsyycz.js} +1 -1
- package/dist/{General-BVjTsECb.js → General-DkcdjPYQ.js} +1 -1
- package/dist/{QR-B60f-H2Q.js → QR-PW6cAG5j.js} +1 -1
- package/dist/TapniAuth.es.js +1 -1
- package/dist/TapniAuth.umd.js +3 -3
- package/dist/{install-BOPYSGGa.js → install-BzPu9V_c.js} +185 -182
- package/package.json +1 -1
- package/src/App.vue +1 -2
- package/src/mixins/auth.mixin.js +1 -0
- package/src/store/auth.js +6 -0
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -18,7 +18,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
18
18
|
<Language v-if="!isModal" />
|
|
19
19
|
<SSO v-if="!isModal" />
|
|
20
20
|
<SSOPick v-if="!isModal" />
|
|
21
|
-
<OTP />
|
|
22
21
|
|
|
23
22
|
<AuthWelcome v-if="initialized && renderView === 'AuthWelcome'" />
|
|
24
23
|
<AuthLogin v-else-if="initialized && renderView === 'AuthLogin'" :isModal="isModal" />
|
|
@@ -143,7 +142,7 @@ export default {
|
|
|
143
142
|
EventBus.$on('refreshTokenAction',(data) => this.refreshTokenAction({...data, storage: this.$storex}))
|
|
144
143
|
EventBus.$on('switchAccount',(data) => this.switchAccount(data))
|
|
145
144
|
EventBus.$on('setToken',(data) => this.setToken(data))
|
|
146
|
-
EventBus.$on('
|
|
145
|
+
EventBus.$on('setStorageItem',(data) => this.setStorageItem(data))
|
|
147
146
|
},
|
|
148
147
|
methods: {
|
|
149
148
|
async init () {
|
package/src/mixins/auth.mixin.js
CHANGED
package/src/store/auth.js
CHANGED
|
@@ -73,6 +73,9 @@ export default {
|
|
|
73
73
|
setAccountSettings(state, account) {
|
|
74
74
|
state.account = account;
|
|
75
75
|
},
|
|
76
|
+
setStorageItem(state, item) {
|
|
77
|
+
state.$storex[item.name] = item.data;
|
|
78
|
+
},
|
|
76
79
|
setStorage(state, storage) {
|
|
77
80
|
state.$storex = {
|
|
78
81
|
...state.$storex,
|
|
@@ -135,6 +138,9 @@ export default {
|
|
|
135
138
|
commit('setAccountSettings', response.data.data);
|
|
136
139
|
}
|
|
137
140
|
},
|
|
141
|
+
setStorageItem({ commit }, item) {
|
|
142
|
+
commit('setStorageItem', item);
|
|
143
|
+
},
|
|
138
144
|
setStorage({ commit }, storage) {
|
|
139
145
|
commit('setStorage', storage);
|
|
140
146
|
},
|