diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-05-22 20:58:25 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-05-25 17:32:16 +0200 |
commit | e02643f32e4c97ca307f8fc5b69be79c40d70a3b (patch) | |
tree | b7f6269913cd5a0e4f26a9461a043deb0c168be0 /server/middlewares/oauth.ts | |
parent | 65fcc3119c334b75dd13bcfdebf186afdc580a8f (diff) | |
download | PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.tar.gz PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.tar.zst PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.zip |
Type models
Diffstat (limited to 'server/middlewares/oauth.ts')
-rw-r--r-- | server/middlewares/oauth.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/middlewares/oauth.ts b/server/middlewares/oauth.ts index 31ae1e000..07bbded57 100644 --- a/server/middlewares/oauth.ts +++ b/server/middlewares/oauth.ts | |||
@@ -1,11 +1,11 @@ | |||
1 | import OAuthServer = require('express-oauth-server') | 1 | import OAuthServer = require('express-oauth-server') |
2 | 2 | ||
3 | const constants = require('../initializers/constants') | 3 | import { OAUTH_LIFETIME } from '../initializers' |
4 | const logger = require('../helpers/logger') | 4 | import { logger } from '../helpers' |
5 | 5 | ||
6 | const oAuthServer = new OAuthServer({ | 6 | const oAuthServer = new OAuthServer({ |
7 | accessTokenLifetime: constants.OAUTH_LIFETIME.ACCESS_TOKEN, | 7 | accessTokenLifetime: OAUTH_LIFETIME.ACCESS_TOKEN, |
8 | refreshTokenLifetime: constants.OAUTH_LIFETIME.REFRESH_TOKEN, | 8 | refreshTokenLifetime: OAUTH_LIFETIME.REFRESH_TOKEN, |
9 | model: require('../lib/oauth-model') | 9 | model: require('../lib/oauth-model') |
10 | }) | 10 | }) |
11 | 11 | ||