0
After a successful authentication of a user, it's session data is encoded into an access token, and then the following code is used to set the cookie: res.set('Set-Cookie', cookie.serialize('access_token', token, { httpOnly: true, maxAge: 60 * 60 * 24 * 7 // 1 week })); Later, the user...