1. 首页
  2. 数据库
  3. 其它
  4. node jwt simple:用于node.js的JWT(JSON Web令牌)编码和解码模块 源码

node jwt simple:用于node.js的JWT(JSON Web令牌)编码和解码模块 源码

上传者: 2021-03-02 13:45:37上传 ZIP文件 27.47KB 热度 142次
jwt-简单 用于node.js的编码和解码模块。 安装 $ npm install jwt-simple 用法 let jwt = require ( 'jwt-simple' ) ; let payload = { foo : 'bar' } ; let secret = 'xxx' ; // HS256 secrets are typically 128-bit random strings, for example hex-encoded: // let secret = Buffer.from('fe1a1915a379f3be5394b64d14794932', 'hex') //
下载地址
用户评论