The goal of serializing / deserializing users into a session when using PassportJS?

What is the purpose of serializing / deserializing users in a session when using PassportJS? I have worked with JSP before and there seems to be no such thing.

+2
source share
1 answer

It controls how the user instance is stored in the session store (e.g. connect-redis ).

I am not an expert in JSP, but I assume that there is some kind of ISerializable interface that classes should implement, which would be a rough equivalent.

0
source

Source: https://habr.com/ru/post/1536035/


All Articles