node-authentication-jwt-mongodb icon indicating copy to clipboard operation
node-authentication-jwt-mongodb copied to clipboard

Replaced lines at validateToken.js

Open HaraldLeftShift opened this issue 2 years ago • 0 comments

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 // By this one const token =req.headers.authorization;

HaraldLeftShift avatar Apr 06 '22 11:04 HaraldLeftShift