Within this helper, we return easily the following information about the user session as white label data, whether the user is authenticated or not, etc.
⚠️ 🚧 For now, you’ll need to pass the store as parameter, but we hope to remove this requirement in the future.
You can trigger an action from any of the oasis-security vuex store as follows:
dispatch({ action: types.actions.UPDATE_ID_SELECTED, data: selectedId });
You can use the oasis-security vuex getters as follows:
const menu = getData({ getterName: types.getters.GET_MENU });
You can get the state directly from the oasis-security vuex store as follows:
const { username } = getState({ attrName: 'userInfo' });