node-authentication-jwt-mongodb
node-authentication-jwt-mongodb copied to clipboard
Replaced lines at validateToken.js
Replaced this line around line 18 , I think that when sending headers by axios, there is no need to make this split.
// Replaced this line
// const token = req.headers.authorization.split(" ")[1]; // Bearer