diff options
Diffstat (limited to 'server/middlewares/oauth.js')
-rw-r--r-- | server/middlewares/oauth.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/middlewares/oauth.js b/server/middlewares/oauth.js index 3d7429f1d..91a990509 100644 --- a/server/middlewares/oauth.js +++ b/server/middlewares/oauth.js | |||
@@ -2,9 +2,12 @@ | |||
2 | 2 | ||
3 | const OAuthServer = require('express-oauth-server') | 3 | const OAuthServer = require('express-oauth-server') |
4 | 4 | ||
5 | const constants = require('../initializers/constants') | ||
5 | const logger = require('../helpers/logger') | 6 | const logger = require('../helpers/logger') |
6 | 7 | ||
7 | const oAuthServer = new OAuthServer({ | 8 | const oAuthServer = new OAuthServer({ |
9 | accessTokenLifetime: constants.OAUTH_LIFETIME.ACCESS_TOKEN, | ||
10 | refreshTokenLifetime: constants.OAUTH_LIFETIME.REFRESH_TOKEN, | ||
8 | model: require('../lib/oauth-model') | 11 | model: require('../lib/oauth-model') |
9 | }) | 12 | }) |
10 | 13 | ||