|
|
|
|
|
by abimaelmartell
3575 days ago
|
|
This feels so wrong.... cookies({ token: '42' }, {
expires: 100 * 24 * 3600, // The time to expire in seconds
domain: false, // The domain for the cookie
path: '/', // The path for the cookie
secure: https ? true : false // Require the use of https
});
|
|
This is the standard, modern way of added options to a function.