aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-08 08:17:41 +0200
committerChocobozzz <me@florianbigard.com>2018-06-08 08:17:41 +0200
commitff193d5e3fbe648f689be2e235dcf88daa1bba48 (patch)
treedf3b21437b112d78911dff28b7f0751ca6a1c9e4 /server
parent8eb8bc201e0861599702a4048ff7edc59ad34d89 (diff)
downloadPeerTube-ff193d5e3fbe648f689be2e235dcf88daa1bba48.tar.gz
PeerTube-ff193d5e3fbe648f689be2e235dcf88daa1bba48.tar.zst
PeerTube-ff193d5e3fbe648f689be2e235dcf88daa1bba48.zip
Increase access_token lifetime
Diffstat (limited to 'server')
-rw-r--r--server/initializers/constants.ts2
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
41const OAUTH_LIFETIME = { 41const 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