7 lines
208 B
JavaScript
7 lines
208 B
JavaScript
const jwt = require('jsonwebtoken')
|
|
|
|
const isAuthenticated = (req, res, next) => {
|
|
if (typeof req.headers.authorization !== undefined) {
|
|
let token = req.headers.authorization.split(" ")[1]
|
|
}
|
|
} |