department-of-veterans-affairs/vets-website

View on GitHub
src/applications/check-in/reducers/authentication/index.js

Summary

Maintainability
A
0 mins
Test Coverage
const setSessionHandler = (state, action) => {
  return {
    ...state,
    context: {
      ...state.context,
      token: action.payload.token,
      permissions: action.payload.permissions,
    },
  };
};

export { setSessionHandler };