aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/oauth.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/oauth.js')
-rw-r--r--server/middlewares/oauth.js3
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
3const OAuthServer = require('express-oauth-server') 3const OAuthServer = require('express-oauth-server')
4 4
5const constants = require('../initializers/constants')
5const logger = require('../helpers/logger') 6const logger = require('../helpers/logger')
6 7
7const oAuthServer = new OAuthServer({ 8const 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