diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-08 08:17:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-08 08:17:41 +0200 |
commit | ff193d5e3fbe648f689be2e235dcf88daa1bba48 (patch) | |
tree | df3b21437b112d78911dff28b7f0751ca6a1c9e4 /server/initializers/constants.ts | |
parent | 8eb8bc201e0861599702a4048ff7edc59ad34d89 (diff) | |
download | PeerTube-ff193d5e3fbe648f689be2e235dcf88daa1bba48.tar.gz PeerTube-ff193d5e3fbe648f689be2e235dcf88daa1bba48.tar.zst PeerTube-ff193d5e3fbe648f689be2e235dcf88daa1bba48.zip |
Increase access_token lifetime
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 54f22c95a..79e4bb7f0 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -39,7 +39,7 @@ const SORTABLE_COLUMNS = { | |||
39 | } | 39 | } |
40 | 40 | ||
41 | const OAUTH_LIFETIME = { | 41 | const OAUTH_LIFETIME = { |
42 | ACCESS_TOKEN: 3600 * 4, // 4 hours | 42 | ACCESS_TOKEN: 3600 * 24, // 1 day, for upload |
43 | REFRESH_TOKEN: 1209600 // 2 weeks | 43 | REFRESH_TOKEN: 1209600 // 2 weeks |
44 | } | 44 | } |
45 | 45 | ||