Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jwt默认不加密么? #68

Open
purple97 opened this issue Nov 1, 2022 · 0 comments
Open

jwt默认不加密么? #68

purple97 opened this issue Nov 1, 2022 · 0 comments

Comments

@purple97
Copy link

purple97 commented Nov 1, 2022

如题, 那么设置app.config.jwt.secret 的意义是什么?
const jwtcode = app.jwt.sign({ uid: 1111 }, app.config.jwt.secret);
这样加工后返回的jwt code 可以在以下工具解密:
https://www.box3.cn/tools/jwt.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant