fastify / fastify-secure-session

Create a secure stateless cookie session for Fastify
MIT License
201 stars 45 forks source link

Fix maxAge time example #184

Closed michalzalobny closed 1 year ago

michalzalobny commented 1 year ago

From the example in the documentation it seems, that the maxAge of the cookie/session should be passed in milliseconds, however, the browser and plugin treat it as if it is passed in seconds. I changed the example to 60 * 60 which is 3600 seconds, which might be less confusing for others.

Checklist