aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index 32fe1645f..7fcf5b01b 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -12,6 +12,11 @@ const FRIEND_SCORE = {
12// Time to wait between requests to the friends (10 min) 12// Time to wait between requests to the friends (10 min)
13let INTERVAL = 600000 13let INTERVAL = 600000
14 14
15const OAUTH_LIFETIME = {
16 ACCESS_TOKEN: 3600 * 4, // 4 hours
17 REFRESH_TOKEN: 1209600 // 2 weeks
18}
19
15// Number of results by default for the pagination 20// Number of results by default for the pagination
16const PAGINATION_COUNT_DEFAULT = 15 21const PAGINATION_COUNT_DEFAULT = 15
17 22
@@ -71,6 +76,7 @@ module.exports = {
71 API_VERSION: API_VERSION, 76 API_VERSION: API_VERSION,
72 FRIEND_SCORE: FRIEND_SCORE, 77 FRIEND_SCORE: FRIEND_SCORE,
73 INTERVAL: INTERVAL, 78 INTERVAL: INTERVAL,
79 OAUTH_LIFETIME: OAUTH_LIFETIME,
74 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT, 80 PAGINATION_COUNT_DEFAULT: PAGINATION_COUNT_DEFAULT,
75 PODS_SCORE: PODS_SCORE, 81 PODS_SCORE: PODS_SCORE,
76 REQUESTS_IN_PARALLEL: REQUESTS_IN_PARALLEL, 82 REQUESTS_IN_PARALLEL: REQUESTS_IN_PARALLEL,