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 DEV.to and I don't understand its editor yet.