@midwayjs/passport 模块 isAuthenticated() 函数不能正确返回认证状态 #3609
Closed
billy-poon
started this conversation in
General / 闲聊
Replies: 1 comment
-
感谢反馈,的确是 bug。 #3617 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
isAuthenticated
···
req.isAuthenticated = () => {
const property = this.passport.getUserProperty();
return !!this[property];
};
···
目前我的解决办法是覆写
attachRequestMethod
函数这样可以解决问题。
不知道是不是我的用法有错?
Beta Was this translation helpful? Give feedback.
All reactions