Skip to content

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

@IEfucker

Description

@IEfucker

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

应该这样吧

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

使用

existUser.githubAccessToken = profile.accessToken;

是错的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions