@nitronjs/framework 0.2.21 → 0.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,7 +109,13 @@ class SessionManager {
109
109
  * @returns {Object}
110
110
  */
111
111
  get cookieConfig() {
112
- return { ...this.#config.cookie, signed: true };
112
+ const config = { ...this.#config.cookie, signed: true };
113
+
114
+ if (config.maxAge) {
115
+ config.maxAge = Math.floor(config.maxAge / 1000);
116
+ }
117
+
118
+ return config;
113
119
  }
114
120
 
115
121
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitronjs/framework",
3
- "version": "0.2.21",
3
+ "version": "0.2.22",
4
4
  "description": "NitronJS is a modern and extensible Node.js MVC framework built on Fastify. It focuses on clean architecture, modular structure, and developer productivity, offering built-in routing, middleware, configuration management, CLI tooling, and native React integration for scalable full-stack applications.",
5
5
  "bin": {
6
6
  "njs": "./cli/njs.js"