Browse Source

file moved to ./server/utils/auth.js

Brian Wiborg 2 years ago
parent
commit
939099da85
1 changed files with 0 additions and 7 deletions
  1. 0
    7
      utils/auth.js

+ 0
- 7
utils/auth.js View File

@@ -1,7 +0,0 @@
1
-const passport = require('passport');
2
-const { Strategy: BearerStrategy } = require('passport-http-bearer');
3
-const jwt = require('./jwt');
4
-
5
-passport.use(new BearerStrategy((token, done) => {
6
-  jwt.verify(token)
7
-}))

Loading…
Cancel
Save