我最新引用了 jsonwebtoken。一直做前端写登录比较懵逼!!! 链接
回复 (6)
J
引用 yangcecode@Josh119891 对的
@yangcecode 这个就直接照着写就好,油管还有很多JWT相关教程. 你不说具体点,我也不知道你哪里卡住
Z
midwayjs 文档貌似没这块。
nest 有一些示例,思路应该差不多: 文档: https://docs.nestjs.cn/6/techniques?id=%e8%ae%a4%e8%af%81%ef%bc%88authentication%ef%bc%89 例子: https://github.com/nestjs/nest/tree/master/sample/19-auth-jwt https://github.com/Abdallah-khalil/NodeJsWithPassport 更多: https://docs.nestjs.cn/6/awesome
不知道有没有参考价值
J
https://github.com/auth0/node-jsonwebtoken 你说的是这个吗???jwt module?
Y
Y
Y
官方example里有jwt的例子可以参考下 https://github.com/midwayjs/midway-examples token的应用可以参考阮一峰的这篇 http://www.ruanyifeng.com/blog/2019/04/oauth-grant-types.html
参与回复
登录后即可参与回复。登录