Rest API - Authentication and Authorization
Identify the error in this JWT verification code snippet:
const jwt = require('jsonwebtoken');
const token = req.headers.authorization;
const decoded = jwt.verify(token, 'secretKey');
console.log(decoded);