JSON Web Token(JWT)規範定義了一種代表通用的 token 資訊的方式。 ... token = jwt.sign({ user: req.user.id }, secretKey, { expiresIn: model.
確定! 回上一頁