Utilizing Passport.js and Angular for a web application, I aim to leverage Passport.js for authentication without the use of sessions. However, I consistently encounter an
[Error: Failed to serialize user into session]
each time I attempt to authorize a user.
My attempt to address this by implementing the serializeUser
and deserializeUser
callbacks had no effect, as the error persists.
Is it necessary to incorporate passport-session
and store something in the session to enable Passport.js to authorize the user, or is it possible to somehow set serialize: false
instead?