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

时间:2021-02-13 12:11:28
【文件属性】:
文件名称:jwt:基于jsonwebtoken包的JWT实用程序模块:unlocked:
文件大小:220KB
文件格式:ZIP
更新时间:2021-02-13 12:11:28
nodejs javascript jwt typescript jsonwebtoken 一个渐进式的框架,用于构建高效且可扩展的服务器端应用程序。 描述 基于包的的JWT实用程序模块。 安装 $ npm i --save @nestjs/jwt 用法 导入JwtModule : @ Module ( { imports : [ JwtModule . register ( { secret : 'hard!to-guess_secret' } ) ] , providers : [ ... ] , } ) export class AuthModule { } 注入JwtService : @ Injectable ( ) export class AuthService { constructor ( private readonly jwtService : JwtService ) { } } 秘密/加密密钥选项 如果要动态控制机密和密钥管理,可以为此
【文件预览】:
jwt-master
----.github()
--------ISSUE_TEMPLATE.md(1KB)
--------PULL_REQUEST_TEMPLATE.md(1KB)
----index.ts(24B)
----.eslintrc.js(708B)
----.circleci()
--------config.yml(937B)
----lib()
--------index.ts(91B)
--------jwt.providers.ts(274B)
--------jwt.service.ts(4KB)
--------jwt.constants.ts(56B)
--------interfaces()
--------jwt.service.spec.ts(8KB)
--------jwt.module.ts(2KB)
----.npmignore(77B)
----jest.json(314B)
----CONTRIBUTING.md(11KB)
----tsconfig.json(459B)
----LICENSE(1KB)
----.prettierrc(52B)
----README.md(8KB)
----index.d.ts(24B)
----.commitlintrc.json(466B)
----.release-it.json(110B)
----renovate.json(157B)
----.gitignore(146B)
----index.js(167B)
----.eslintignore(25B)
----package-lock.json(1.01MB)
----package.json(2KB)

网友评论