Skip to content

Instantly share code, notes, and snippets.

@PamornT
Created October 20, 2019 20:36
Show Gist options
  • Save PamornT/a7a033a2e635df385498ed4e7ce8247e to your computer and use it in GitHub Desktop.
Save PamornT/a7a033a2e635df385498ed4e7ce8247e to your computer and use it in GitHub Desktop.
const revoke_access_token = (access_token) => {
let params = {
access_token: access_token
};
let formData = querystring.stringify(params);
return request.post({
uri: `${LINE_OAUTH_API}/revoke`,
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: formData
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment