We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ctx.state.user 可以提取到JWT编码的data,这里的原理是什么?
The text was updated successfully, but these errors were encountered:
不负责任猜想:jwt作为路由的中间件,先于实际请求的controller执行,解码之后,就直接给app.state.user赋值了,然后你就拿到了,这和你自己写一个路由中间件,在这个中间件里面给ctx里面挂东西是一样的
Sorry, something went wrong.
No branches or pull requests
ctx.state.user 可以提取到JWT编码的data,这里的原理是什么?
The text was updated successfully, but these errors were encountered: