Created
October 20, 2019 20:36
-
-
Save PamornT/a7a033a2e635df385498ed4e7ce8247e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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