projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eb8bc2
)
Increase access_token lifetime
author
Chocobozzz
<me@florianbigard.com>
Fri, 8 Jun 2018 06:17:41 +0000
(08:17 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Fri, 8 Jun 2018 06:17:41 +0000
(08:17 +0200)
server/initializers/constants.ts
patch
|
blob
|
history
diff --git
a/server/initializers/constants.ts
b/server/initializers/constants.ts
index 54f22c95a878d5a4b6dcf742fb2c34ff3559495b..79e4bb7f05772a23e8e891144b66c9dd885ee308 100644
(file)
--- a/
server/initializers/constants.ts
+++ b/
server/initializers/constants.ts
@@
-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
}