line / line-bot-sdk-nodejs

LINE Messaging API SDK for Node.js
https://developers.line.biz/en/docs/messaging-api/overview/
Apache License 2.0
960 stars 406 forks source link

Support line login #539

Open pipob opened 1 year ago

pipob commented 1 year ago

I not found 2 api about get user profile by access_token on the sdk

https://developers.line.biz/en/reference/line-login/#get-user-profile https://developers.line.biz/en/reference/line-login/#userinfo

Please help to create that. thank you.

Yang-33 commented 1 year ago

is not defined in this sdk too, although I'm not sure we should support line-login in this sdk.

pipob commented 1 year ago

I found oauth feature added on #291 and #318. Not sure "Get user information" was release after that?

Yang-33 commented 9 months ago

No, I think that pull request just made the oauth-related (related to channel access token) APIs usable in line-bot-sdk-nodejs. There were APIs like userinfo in line-login from that time, but it seems that no one just contributed this.

Now, line-bot-sdk-nodejs generates code automatically based on line-openapi. We can easily generate code by adding a definition here, but only employees belonging to the LINE org can add definitions. Also there are no immediate plans to manage line-login APIs with line-openapi. (But, I want to support this!) There is still no prospect of adding it. I'm sorry, but please wait.

Yang-33 commented 9 months ago

If you want to use it in line-bot-sdk-nodejs now, you can add code here to access the line login endpoint. (However, this will no longer be maintained, because it's old code and deprecated.)