La siguiente instrucción que genera el token No es correcta:
jwt.sign( { ...
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
La siguiente instrucción que genera el token No es correcta: jwt.sign( { id: result[0].id, role: result[0].role, createdAt: new Date().toISOString() }, { expiresIn: "1h" })