Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express get jwt token from header

const authHeader = req.headers.authorization;
const token = authHeader.split(' ')[1];
jwt.verify(token, secret_key); 
 
PREVIOUS NEXT
Tagged: #express #jwt #token #header
ADD COMMENT
Topic
Name
6+8 =