Increase access_token lifetime
authorChocobozzz <me@florianbigard.com>
Fri, 8 Jun 2018 06:17:41 +0000 (08:17 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 8 Jun 2018 06:17:41 +0000 (08:17 +0200)
server/initializers/constants.ts

index 54f22c95a878d5a4b6dcf742fb2c34ff3559495b..79e4bb7f05772a23e8e891144b66c9dd885ee308 100644 (file)
@@ -39,7 +39,7 @@ const SORTABLE_COLUMNS = {
 }
 
 const OAUTH_LIFETIME = {
-  ACCESS_TOKEN: 3600 * 4, // 4 hours
+  ACCESS_TOKEN: 3600 * 24, // 1 day, for upload
   REFRESH_TOKEN: 1209600 // 2 weeks
 }