req.isAuthenticated() doesn’t work as it should
I am trying to implement passport. What i am trying to achive is only logged in users will be able to access /create route and create new posts.
I imported necessary libraries.
I am trying to implement passport. What i am trying to achive is only logged in users will be able to access /create route and create new posts.
I imported necessary libraries.