When developing a MERN webapp, a common practice is to store user tokens in cookies. However, some examples store user sessions with React Redux.
Which option is better? Is it acceptable to store tokens with React Redux?
// token stored with React Redux const token = useSelector(state => state.user.token)
// token stored with cookies const token = cookies.get('token')