const jwt = require('jsonwebtoken'); const token = jwt.sign({ userId: '1', id: 1 }, 'my-jwt-secret-key-2024', { expiresIn: '1d' }); console.log(token);