How do I set up passport.js so that if I have two different users login in, it would be two distinct accounts. Right now I am running into a weird bug in which one user logs in. If a second user logs in, and the first user refreshes the page, the first user becomes the second user…
Share
It’s hard to say without code but you’ve probably got a problem in your verify callback. The verify callback is located in the place where you initialize your Strategy. You’re probably assigning all authenticated user ids to the same user on the server.
The second most likely place is
deserializeUserLast place to check would probably be
serializeUser, the companion to the above method.