Express Zdobądź token jwt z nagłówka
const authHeader = req.headers.authorization;
const token = authHeader.split(' ')[1];
jwt.verify(token, secret_key);
KostasX
const authHeader = req.headers.authorization;
const token = authHeader.split(' ')[1];
jwt.verify(token, secret_key);