DEV Community


Posted on • Originally published at

The Passport, Express and Cookie-Session dilemma.

I recently decided to switch halfway into PHP and MariaDB SQL, to NodeJs and MongoDB. Built my first CRUD app already so I've kind of figured out how Node interacts with a DB.

Now, I'm moving onto authentication and I decided to start with oauth2.0, using precisely Google's.

Problem is, I've done everything right I think, but my app is not getting into a state of 'logged in' that's because it is saving cookies in the browser but I think the browser is not returning those cookies to the server so I'm never detected as 'logged in'.

I will leave you a link of the original article. I'm sorry. I'm new to and I don't understand its editor yet.

Here is the link:

Top comments (2)

emmymay profile image

This has been solved and can be found on the link attached.

myasul profile image
Matthew Yasul

The link is redirecting to a page that does not exist though.