Commit d1694634 authored by Nastassia Danilova's avatar Nastassia Danilova

revoke token API

parent 6a993c66
Pipeline #29517 passed with stages
in 6 minutes and 47 seconds
......@@ -72,11 +72,22 @@ const resetPassword = async ({ config, queries }) => {
})
}
const revokeToken = async ({ config, params }) => utils.request({
url: `/oauth/revoke`,
method: 'POST',
config,
body: JSON.stringify(params),
headers: {
'Content-Type': 'application/json'
}
})
const oauth = {
createApp,
getTokenWithCode,
getTokenWithPassword,
resetPassword
resetPassword,
revokeToken
}
export default oauth
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment