Skip to content

Commit bc178d8

Browse files
Merge pull request #8 from BreakOutEvent/feature/account-deletion
Feature/account deletion
2 parents 4415a1a + c3dce5a commit bc178d8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "breakout-api-client",
3-
"version": "0.17.0",
3+
"version": "0.17.1",
44
"description": "A JS Api client for the breakout-backend",
55
"main": "src/BreakoutApi.js",
66
"directories": {

src/BreakoutApi.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,10 @@ class BreakoutApi {
517517
return this.instance.post(`/admin/user/${userId}/swappasswords/`).then(resp => resp.data);
518518
}
519519

520+
deleteAccount(userId) {
521+
return this.instance.delete(`/user/${userId}/`).then(resp => resp.data);
522+
}
523+
520524
cloneSettings(debug=false) {
521525
return new BreakoutApi(this.url, this.clientId, this.clientSecret, this.cloudinaryCloud, this.cloudinaryApiKey, debug);
522526
}

0 commit comments

Comments
 (0)