how to generate jwt key code example
Example 1: generate jwt secret key
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
Example 2: jwt generate token
const genToken = (id) => {
return JWT.sign({ id }, process.env.JWT_SECRET)
}