12. Account Deletion
In case user wants to delete his/her account, then a new mutation should be executed:
mutation {
deleteAccount {
status
}
}
Authorization: Bearer ACCESS_TOKEN
Response:
{
"data": {
"deleteAccount": {
"status": "OK"
}
}
}
if user is already blocked, then you might receive following response:
{
"data": {
"deleteAccount": {
"status": "CONFLICT"
}
}
}
When account is blocked and user tries to login, following reponse will be returned from login endpoint:
{
"data": {
"login": {
"jwt": null,
"status": "BLOCKED"
}
}
}