make it run
This commit is contained in:
parent
c17bb05f0a
commit
db480a88e0
7 changed files with 54 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ export class encrypt {
|
|||
}
|
||||
|
||||
static generateToken(payload: object) {
|
||||
// @todo currently, we have an error here!
|
||||
return jwt.sign(payload, JWT_SECRET, { expiresIn: "1d" });
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue