Untitled
unknown
javascript
2 years ago
198 B
7
Indexable
const jwt = require('jsonwebtoken');
const JWT_SECRET = '';
//create token sync
const token = jwt.sign({ data: {kelas: 'ecomm'} },
JWT_SECRET,
{ expiresIn: '15m' });
console.log(token);Editor is loading...
Leave a Comment