Hello fellow developers!
I am pushing on with my food delivery practice website and have now reached the point where I need to implement some cookies. I am building the site using MERN stack.
For my authentication the way I best understand it is to implement passport js on my backend for login in users manually and with google/Facebook auth. However when it comes to creating cookies to store a shopping session eg saving the users cart I'm not sure what the best way to do this would be, do I implement cookies on my frontend with React storing the session locally or should I set it up in my API where everything is stored on the server. This is my first time implementing something like this so any input on best practices would be super helpful! Sorry if the question sounds a bit uninformed I am still a novice!