@things-factory/auth-base 8.0.88 → 8.0.94

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/auth-base",
3
- "version": "8.0.88",
3
+ "version": "8.0.94",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -32,9 +32,9 @@
32
32
  "dependencies": {
33
33
  "@simplewebauthn/browser": "^13.0.0",
34
34
  "@simplewebauthn/server": "^13.0.0",
35
- "@things-factory/email-base": "^8.0.88",
35
+ "@things-factory/email-base": "^8.0.94",
36
36
  "@things-factory/env": "^8.0.88",
37
- "@things-factory/shell": "^8.0.88",
37
+ "@things-factory/shell": "^8.0.94",
38
38
  "@things-factory/utils": "^8.0.88",
39
39
  "@types/webappsec-credential-management": "^0.6.9",
40
40
  "jsonwebtoken": "^9.0.0",
@@ -46,5 +46,5 @@
46
46
  "passport-jwt": "^4.0.0",
47
47
  "passport-local": "^1.0.0"
48
48
  },
49
- "gitHead": "e69eac3309063291d4249333288b98e23bd7a293"
49
+ "gitHead": "8624fb1b8c9d979f1b5edf747c5ee1d08cf79a6f"
50
50
  }
@@ -1 +1,7 @@
1
- export const MAX_AGE = 7 * 24 * 3600 * 1000
1
+ import { config } from '@things-factory/env'
2
+
3
+ const DEFAULT_EXPIRY_SECONDS = 7 * 24 * 3600 // 기본값: 7일
4
+
5
+ /* 쿠키 만료 시간을 session config와 동기화 */
6
+ const sessionExpirySeconds = Number(config.get('session/expirySeconds')) || DEFAULT_EXPIRY_SECONDS
7
+ export const MAX_AGE = sessionExpirySeconds * 1000