in src/lib/store/util/index.js [13:36]
export function createCustosStore(vuex = Vuex, vue = Vue) {
vue.use(vuex);
const debug = process.env.NODE_ENV !== 'production';
const custosSessionPlugin = store => {
store.dispatch('auth/init')
custosService.identity.onChange(() => store.dispatch('auth/init'))
}
return new vuex.Store({
modules: {
auth,
user,
group,
tenant,
sharing,
entity,
ciLogon
},
strict: debug,
plugins: debug ? [createLogger(), custosSessionPlugin] : [custosSessionPlugin],
})
}