S
S
source20032016-10-15 22:03:10
Node.js
source2003, 2016-10-15 22:03:10

Why are sessions implemented in passportJS?

PassportJS has its own sessions that come as middleware:
app.use(passport.session());
Why are they needed at all if there is an express-session? And I can access data not through req.user , but through req.session.passport.user .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
catHD, 2016-10-18
@catHD

stackoverflow.com/questions/22052258/what-does-pas...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question