diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-06 15:59:12 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-06 15:59:12 +0100 |
commit | 6f3fe96f4003fd9ad198cdf0ee5a47b32e9e6568 (patch) | |
tree | a3f1f541abec41abee96df9960cbe2b2a6c3ba86 /server/middlewares | |
parent | 349be1eaa9a61b2e2acaa24db58acb95774c0d20 (diff) | |
download | PeerTube-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.ts | 1 |
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 | ||