passportjs sends a cookie on each request
thank you in advance
I use this lib called
passportjs, I know it doesn't make any sense to use it in a simple authentication method like this, how ever, it seems like it's setting an http cookieon each request, even if the requested route doesn't exist.
basically I know that the setCookie header is included once you change the session object. so why passportjs does that?
I spend to much time dealing with the problems of this lib while I could just use express-session and do more than this simple authentication.
so here is the implementation of the lib:
did I forget another thing that is not in the docs?
and here is the only route I use it's middleware:
0 Replies