can someone explain about undefined in my code and about passport-local

enter image description here

guys I have 2 question

  1. what is “local-register , local-login” where is come from. My route is /login and /register so how is it come. It’s from passport-local right? And this make me to type “local-login” like this right?

  2. can someone explain this the 1st passport.use(local-register)
    when I console.log(user) const user = undefined
    but 2nd passport.use (local-login) when I use console.log(user) is not equal undefined although I have used same code in the 2 first-line but why Unequal values.` sorry for post Image I can’t post code.