session duration set to 1 day to avoid expiration during long downloads

Massimo Melina committed Jun 19, 2022 at 17:27 UTC 7104c44ac3a81453104100bc222b153c4f1cbd15
1 file changed +1 -1
server/src/const.ts
+1 -1
@@ -9,8 +9,8 @@ export const HFS_STARTED = new Date()
9 export const BUILD_TIMESTAMP = ''
10 export const VERSION = ''
11 || DEV && String(_.attempt(() => JSON.parse(fs.readFileSync('package.json','utf8')).version)) // this should happen only in dev, build fills this value
12 -export const SESSION_DURATION = 30*60_000
12 export const DAY = 86_400_000
13 +export const SESSION_DURATION = DAY
14
15 export const API_VERSION = 4 // introduced type:real_path and api.subscribeConfig/setConfig/getHfsConfig
16 export const COMPATIBLE_API_VERSION = 1 // while changes in the api are not breaking, this number stays the same, otherwise is made equal to API_VERSION