Module: lib/deserializeuser

deserialize user module This module converts data stored in the session cookie into user objects
Source:

Methods

(private, static) deserializeUser(data, done)

deserialize a logged in user from session storage and reconstruct a user object. Since the user data is so small, the entire object was stored in the session cookie. Copy the whole object back into the user object.
Parameters:
Name Type Description
data String the data stored in the session cookie
done function the function to call upon completion
Source: