egg-passport oauth2策略,如何开启路由认证,将登陆认证存入session?
Open
Inactive
not follow template
plugin: egg-passport
- Dominant language
- TypeScript
- Stars
- 19k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
目前ctx.isAuthenticated()在路由中默认为true,只能清除cookie或者触发this.logout() 才能清除登陆状态让isAuthenticated返回false,关闭浏览器也不行
怎么能像koa这种设置路由session呢,想把项目从koa迁到egg,就是一直卡在登陆这块。。。。。。。。
附地址:https://github.com/Yunfly/egg-passport-oauth2
Contributor guide
Assessment
This issue has not been assessed yet.