mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-19 08:02:16 +03:00
9 lines
200 B
JavaScript
9 lines
200 B
JavaScript
const jwt = require('jsonwebtoken');
|
|
|
|
const signToken = (expiresIn) => {
|
|
const token = jwt.sign({ app: 'flame' }, process.env.SECRET, { expiresIn });
|
|
return token;
|
|
};
|
|
|
|
module.exports = signToken;
|