Oasis User Data: Get the user data that you need

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.

Get white label data

Get if the user is authenticated

Get if session expired


Oasis Store helper: Get the store helpers from anywhere

Dispatch

You can trigger an action from any of the oasis-security vuex store as follows:

dispatch({ action: types.actions.UPDATE_ID_SELECTED, data: selectedId });

GetData

You can use the oasis-security vuex getters as follows:

const menu = getData({ getterName: types.getters.GET_MENU });

GetState

You can get the state directly from the oasis-security vuex store as follows:

const { username } = getState({ attrName: 'userInfo' });