Untitled

mail@pastecode.io avatar
unknown
javascript
a month ago
198 B
2
Indexable
Never
const jwt = require('jsonwebtoken');

const JWT_SECRET = '';

//create token sync

const token = jwt.sign({ data: {kelas: 'ecomm'} }, 
JWT_SECRET,
{ expiresIn: '15m' });
console.log(token);
Leave a Comment