Commit 41d5760e authored by Shpuld Shpludson's avatar Shpuld Shpludson

Merge branch 'feat/revoke-token' into 'master'

feat/revoke token API

See merge request !44
parents b0cc39f2 a74f9e85
Pipeline #29859 passed with stages
in 6 minutes and 45 seconds
......@@ -92,13 +92,24 @@ const changeEmail = async ({ config, params }) => utils.request({
}
})
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,
changePassword,
changeEmail
changeEmail,
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