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

建议:根据授权码获取token和根据token获取用户信息两个接口从抽象类AuthDefaultRequest提升至接口AuthRequest中 #194

Open
melelee opened this issue Jan 26, 2024 · 1 comment
Assignees
Labels
improvement improvement of function

Comments

@melelee
Copy link

melelee commented Jan 26, 2024

现在很多平台支持根据授权码获取token的同时,获取部分用户信息(OpenID Connect协议)。是否可以考虑把getAccessToken和getUserInfo两个方法提升到AuthRequest中?这样的话,可以在获取到token时,如果用户已经绑定了对应账号,就可以直登录了,不用再调用getUserInfo接口获取用户详情了,少了一次网络请求。

@zhangyd-c zhangyd-c self-assigned this Aug 3, 2024
@zhangyd-c zhangyd-c added the improvement improvement of function label Aug 3, 2024
@zhangyd-c
Copy link
Member

感谢!这个建议很好,在 1.16.7 版本优化该问题。请关注发版通知

zhangyd-c added a commit that referenced this issue Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement improvement of function
Projects
None yet
Development

No branches or pull requests

2 participants