aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/auth.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-25 15:25:48 +0100
committerChocobozzz <me@florianbigard.com>2021-02-25 15:25:48 +0100
commite7812bf0919ebc8e41d53ff981e1fbf77282e86f (patch)
tree70fd8cbe537ea82cf3d0f0949cf1e91baa083389 /server/lib/auth.ts
parent031ea8efed6979cb01d0a7857cea6aa27270ceb7 (diff)
downloadPeerTube-e7812bf0919ebc8e41d53ff981e1fbf77282e86f.tar.gz
PeerTube-e7812bf0919ebc8e41d53ff981e1fbf77282e86f.tar.zst
PeerTube-e7812bf0919ebc8e41d53ff981e1fbf77282e86f.zip
Add refresh_token_expires_in to oauth res
Diffstat (limited to 'server/lib/auth.ts')
-rw-r--r--server/lib/auth.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/auth.ts b/server/lib/auth.ts
index 466c9bdd4..dbd421a7b 100644
--- a/server/lib/auth.ts
+++ b/server/lib/auth.ts
@@ -19,6 +19,7 @@ const oAuthServer = new OAuthServer({
19 useErrorHandler: true, 19 useErrorHandler: true,
20 accessTokenLifetime: OAUTH_LIFETIME.ACCESS_TOKEN, 20 accessTokenLifetime: OAUTH_LIFETIME.ACCESS_TOKEN,
21 refreshTokenLifetime: OAUTH_LIFETIME.REFRESH_TOKEN, 21 refreshTokenLifetime: OAUTH_LIFETIME.REFRESH_TOKEN,
22 allowExtendedTokenAttributes: true,
22 continueMiddleware: true, 23 continueMiddleware: true,
23 model: require('./oauth-model') 24 model: require('./oauth-model')
24}) 25})