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

github的登录verify方法获取accessToken有问题 #137

Open
IEfucker opened this issue Aug 17, 2018 · 0 comments
Open

github的登录verify方法获取accessToken有问题 #137

IEfucker opened this issue Aug 17, 2018 · 0 comments

Comments

@IEfucker
Copy link

这里
https://github.com/cnodejs/egg-cnode/blob/master/app.js#L42

应该这样吧

const githubHandler = async (ctx, { profile, accessToken }) => {
// ...
existUser.githubAccessToken = accessToken;
// ...
}

使用

existUser.githubAccessToken = profile.accessToken;

是错的

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