This question is a bit popular but Im not having such luck. Im mostly a backend person so Im learning as I go along.
I have a cookie named connect.sid
and value of 12345
. I see this in my chrome dev tools.
In my react app I console logged document.cookie
and localStorage.getItem('connect.sid')
. Im getting null values. How to get the value of 12345
?
Passportjs, using passport-github2 strategy, created this cookie. I need access to it so I could talk to my API.
Thanks