aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-06 15:59:12 +0100
committerChocobozzz <me@florianbigard.com>2019-12-06 15:59:12 +0100
commit6f3fe96f4003fd9ad198cdf0ee5a47b32e9e6568 (patch)
treea3f1f541abec41abee96df9960cbe2b2a6c3ba86 /server/middlewares
parent349be1eaa9a61b2e2acaa24db58acb95774c0d20 (diff)
downloadPeerTube-6f3fe96f4003fd9ad198cdf0ee5a47b32e9e6568.tar.gz
PeerTube-6f3fe96f4003fd9ad198cdf0ee5a47b32e9e6568.tar.zst
PeerTube-6f3fe96f4003fd9ad198cdf0ee5a47b32e9e6568.zip
Add action hooks to user routes
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/oauth.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/middlewares/oauth.ts b/server/middlewares/oauth.ts
index bb90dac47..749f5cccd 100644
--- a/server/middlewares/oauth.ts
+++ b/server/middlewares/oauth.ts
@@ -9,6 +9,7 @@ const oAuthServer = new OAuthServer({
9 useErrorHandler: true, 9 useErrorHandler: true,
10 accessTokenLifetime: OAUTH_LIFETIME.ACCESS_TOKEN, 10 accessTokenLifetime: OAUTH_LIFETIME.ACCESS_TOKEN,
11 refreshTokenLifetime: OAUTH_LIFETIME.REFRESH_TOKEN, 11 refreshTokenLifetime: OAUTH_LIFETIME.REFRESH_TOKEN,
12 continueMiddleware: true,
12 model: require('../lib/oauth-model') 13 model: require('../lib/oauth-model')
13}) 14})
14 15