Become a member
Sign in
Read This if You’re Using Passport for Authentication
45
2
Caroline Okun
Vaibhav Sharma
Vaibhav Sharma
Sep 1, 2018 · 1 min read

Hi Caroline

Nice article, but can you share your code base in order to understand the concept better. I can’t understand how req.user is getting populated again with the previously logged in user’s data.

    Vaibhav Sharma

    Written by

    Vaibhav Sharma

    Write the first response

    Discover Medium

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

    Make Medium yours

    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

    Become a member

    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
    AboutHelpLegal