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

[LINE] support issue token and revoke token #391

Open
chentsulin opened this issue Sep 3, 2018 · 2 comments
Open

[LINE] support issue token and revoke token #391

chentsulin opened this issue Sep 3, 2018 · 2 comments

Comments

@chentsulin
Copy link
Member

chentsulin commented Sep 3, 2018

https://developers.line.me/en/reference/messaging-api/#issue-channel-access-token

And then we may want to add short-lived access token and re-issue token support for LineClient.

@chentsulin chentsulin added the LINE label Sep 3, 2018
@chentsulin
Copy link
Member Author

chentsulin commented Sep 16, 2018

Content-Type | application/x-www-form-urlencoded

const token = await LineClient.issueAccessToken({
  grant_type: 'client_credentials',
  client_id: '...',
  client_secret: '...',
});

console.log(token);
// {
//   access_token: '...',
//   expires_in: '..',
//   token_type: 'Bearer'
// }


await LineClient.revokeAccessToken('...');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant