You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to passport and just ran the login example on my local machine.
When I log in as 'bob', password.serializeUser and password.deserializeUser are called.
Thats fine, but why is password.deserializeUser called two times?
How can I cache the user, so I don't have pull him from the db every time password.deserializeUser is called.
The text was updated successfully, but these errors were encountered:
When I was debugging multiple deserializeUser calls I found that my issue was chrome requesting source map files which did not exist. These calls resulted in 404 pages which would deserialize the user
for the header links.
These requests did not show up in the chrome network tab which made things more confusing.
I'm new to passport and just ran the login example on my local machine.
When I log in as 'bob', password.serializeUser and password.deserializeUser are called.
Thats fine, but why is password.deserializeUser called two times?
How can I cache the user, so I don't have pull him from the db every time password.deserializeUser is called.
The text was updated successfully, but these errors were encountered: