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

app.jwt 不可像 koa-jwt2 一样进行参数配置 #19

Closed
sfyr111 opened this issue Apr 20, 2018 · 1 comment
Closed

app.jwt 不可像 koa-jwt2 一样进行参数配置 #19

sfyr111 opened this issue Apr 20, 2018 · 1 comment

Comments

@sfyr111
Copy link

sfyr111 commented Apr 20, 2018

koa-jwt2 可以使用 ge('/', jwt(options), fn) 进行注销、未注册用户访问配置
egg-jwt 只能 ge('/', app.jwt, fn) , 使用 app.jwt(options) 出现报错

Error: get `/articles/:slug`: `middleware` must be a function, not `object`
@okoala
Copy link
Owner

okoala commented Apr 20, 2018

@okoala okoala closed this as completed May 10, 2018
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

2 participants