messaging-apis icon indicating copy to clipboard operation
messaging-apis copied to clipboard

[LINE] support issue token and revoke token

Open chentsulin opened this issue 7 years ago • 2 comments

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 avatar Sep 03 '18 13:09 chentsulin

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('...');

chentsulin avatar Sep 16 '18 06:09 chentsulin

https://github.com/line/line-bot-sdk-nodejs/blob/ef007816fc96e53a80b5ff8a6c4ea7f14c9dc78e/lib/client.ts#L727-L781

chentsulin avatar Oct 25 '21 07:10 chentsulin