Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function factory(req) {
const options = {
auth: getAuthTokens(req),
mergeReducers: {
[communityActions.tcCommunity.joinDone]: (state, { payload }) => ({
...state,
profile: {
...state.profile,
groups: state.profile.groups.concat({ id: payload.groupId.toString() }),
},
}),
},
};
return reducers.auth.factory(options);
}