Doubt in webinar 16 aboute cookies and user

i tried out the same code in my laptop but if i enter the wrong password the site is working fine but i cant see any difference in cookies from when i enter right password. in both cases im getting a cookie.how can i see the difference im cookie then??

also in private.js what is req.user, what exactly is this “user” and from where are we accessing it?

in the passport.js file if we enter wrong password or username we are giving a message of no user or wrong password but im not able find this message in browser… where is this message shown?

req.user is the user object. It is set by passport middleware. If the user is logged in, it will contain the user details.

The error that you return is to determine wheather the login was successful or not. In case a error is returned, the failure redirect is made.