mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-24 18:52:37 +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;
|