Rest API - Authentication and Authorization
Find the bug in this JWT creation code:
const jwt = require('jsonwebtoken');
const token = jwt.sign({ user: 'alice' }, 12345);
console.log(token);