async signJwt(userId) { const { ctx } = this; const token = jwt.sign({ userId }, this.config.jwt.secret, { expiresIn: 60, }); return token; } ...
確定! 回上一頁