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 · 0 comments

Comments

@melelee
Copy link

melelee commented Jan 26, 2024

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

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

1 participant