aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/oauth2.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/middlewares/oauth2.js b/server/middlewares/oauth2.js
new file mode 100644
index 000000000..a1fa61fbb
--- /dev/null
+++ b/server/middlewares/oauth2.js
@@ -0,0 +1,11 @@
1'use strict'
2
3const OAuthServer = require('express-oauth-server')
4
5const oAuth2 = new OAuthServer({
6 model: require('../models/users')
7})
8
9// ---------------------------------------------------------------------------
10
11module.exports = oAuth2