mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
16 lines
243 B
JavaScript
16 lines
243 B
JavaScript
const jwt = require('jsonwebtoken');
|
|
|
|
module.exports = {
|
|
sync: true,
|
|
|
|
inputs: {
|
|
payload: {
|
|
type: 'json',
|
|
required: true,
|
|
},
|
|
},
|
|
|
|
fn(inputs) {
|
|
return jwt.sign(inputs.payload, sails.config.session.secret);
|
|
},
|
|
};
|