Comments (3)
这种全局配置 ignore 就可以了吧
from egg-jwt.
在egg router 没有找到ignore那个。临时解决方案,是每个需要的接口都写上中间件。
const authToken = app.middleware.auth();
from egg-jwt.
@chengnuo https://eggjs.org/zh-cn/basics/middleware.html#%E9%80%9A%E7%94%A8%E9%85%8D%E7%BD%AE
from egg-jwt.
Related Issues (20)
- 最新版的index.d.ts的config定义的不够全 HOT 3
- app/middleware/jwt.js的作用是什么?
- jwt expired token, refresh token HOT 1
- jwt.sign 传入参数无效 HOT 7
- match配置不工作 HOT 1
- this.ctx.state.user 是undefined的 HOT 1
- config设置match后无效 HOT 2
- index.d.ts里的EggAppConfig定义里没有match和ignore HOT 6
- 如何设置token有效时间? HOT 1
- update to use koa-jwt version 3
- add verify in Readme HOT 2
- How to mock the token in unit test?
- typescript中 , app.jwt 作为中间件使用,类型不匹配报错了 HOT 8
- 签名成功,并且请求时也有附带 token,但是后台一直报No authorization token was found HOT 4
- ctx.state.user 可以提取到JWT编码的data,这里的原理是什么? HOT 1
- 401返回内容
- verify函数类型定义不全??? HOT 1
- jwt默认不加密么?
- egg-session本来就是单纯基于cookie的 实现原理类似jwt
- 这里应该实际返回是一个对象吧?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egg-jwt.