在 composer rest 服务器中使用 github 进行身份验证后获取用户数据

Getting user data after authentication with github in composer rest server

我应用了提到的身份验证机制here,它工作正常,但我想在身份验证后检索用户的数据,比如他的用户名和电子邮件,我该怎么做

建议阅读 Github API 文档 https://developer.github.com/v3/users/

此外,这个 link 建议您可以从 Github 身份验证提供程序返回的结果中获取它 -> https://github.com/oauthjs/node-oauth2-server/issues/327#issuecomment-254269482