- [API] Added User routes (need polishing because it parses and sends sensitive data)
This commit is contained in:
7
routes/auth.js
Normal file
7
routes/auth.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const jwt = require('jsonwebtoken')
|
||||
|
||||
const isAuthenticated = (req, res, next) => {
|
||||
if (typeof req.headers.authorization !== undefined) {
|
||||
let token = req.headers.authorization.split(" ")[1]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user