Lines Matching full:state
8 state: { class in AuthenticationStore
17 consoleWindow: (state) => state.consoleWindow,
18 authError: (state) => state.authError,
19 isLoggedIn: (state) => {
23 state.xsrfCookie !== undefined ||
24 state.isAuthenticatedCookie == 'true' ||
25 state.xAuthToken !== null
29 token: (state) => state.xsrfCookie,
32 authSuccess(state, { session, token }) { argument
33 state.authError = false;
34 state.xsrfCookie = Cookies.get('XSRF-TOKEN');
37 state.sessionURI = session;
42 if (state.xsrfCookie === undefined) {
44 state.xAuthToken = token;
47 authError(state, authError = true) { argument
48 state.authError = authError;
50 logout(state) { argument
55 state.xsrfCookie = undefined;
56 state.isAuthenticatedCookie = undefined;
58 state.sessionURI = null;
59 state.xAuthToken = null;
60 state.consoleWindow = false;
84 logout({ commit, state }) {
86 .delete(state.sessionURI)
96 getSessionPrivilege({ commit, state }) {
98 .get(state.sessionURI)
101 resetStoreState({ state }) { field in AuthenticationStore.actions.AnonymousClassdd0a6d100a01
102 state.authError = false;
103 state.xsrfCookie = Cookies.get('XSRF-TOKEN');
104 state.isAuthenticatedCookie = Cookies.get('IsAuthenticated');