diff options
Diffstat (limited to 'modern/src/store')
-rw-r--r-- | modern/src/store/session.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modern/src/store/session.js b/modern/src/store/session.js index 772368c4..9f98b8ae 100644 --- a/modern/src/store/session.js +++ b/modern/src/store/session.js @@ -3,13 +3,17 @@ import { createSlice } from '@reduxjs/toolkit'; const { reducer, actions } = createSlice({ name: 'session', initialState: { - authenticated: false, + server: null, + user: null, }, reducers: { - authenticated(state, action) { - state.authenticated = action.payload; + updateServer(state, action) { + state.server = action.payload; }, - } + updateUser(state, action) { + state.user = action.payload; + }, + }, }); export { actions as sessionActions }; |