1. 首页
  2. 数据库
  3. 其它
  4. jwt:基于jsonwebtoken包的JWT实用程序模块:unlocked: 源码

jwt:基于jsonwebtoken包的JWT实用程序模块:unlocked: 源码

上传者: 2021-02-22 18:50:23上传 ZIP文件 219.8KB 热度 14次
一个渐进式的框架,用于构建高效且可扩展的服务器端应用程序。 描述 基于包的的JWT实用程序模块。 安装 $ npm i --save @nestjs/jwt 用法 导入JwtModule : @ Module ( { imports : [ JwtModule . register ( { secret : 'hard!to-guess_secret' } ) ] , providers : [ ... ] , } ) export class AuthModule { } 注入JwtService : @ Injectable ( ) export class AuthServ
用户评论