MCPcopy Create free account
hub / github.com/socketstream/socketstream / maxAge

Function maxAge

lib/session/cookie.js:70–74  ·  view source on GitHub ↗

* Set expires via max-age in `ms`. * * @param {Number} ms * @api public

(ms)

Source from the content-addressed store, hash-verified

68 */
69
70 set maxAge(ms) {
71 this.expires = 'number' === typeof ms ?
72 new Date(Date.now() + ms) :
73 ms;
74 },
75
76 /**
77 * Get expires max-age in `ms`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected