why does the data in my cookie come back as undefined?

Call res.cookie before res.json. I suppose you should have seen a warning about setting headers after response is about to send.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top