🏗️」 wip(auth): added the hability to remove user

This commit is contained in:
2025-10-16 12:29:16 +02:00
parent d80beff543
commit f689274716
4 changed files with 88 additions and 0 deletions

32
doc/auth/remove.md Normal file
View File

@ -0,0 +1,32 @@
# remove user
Available endpoints:
- DELETE `/`
Common return:
- 500 with response
```json
{
"error": "Internal server error"
}
```
## DELETE `/`
User to remove a user from the backend
Inputs: just need a valid JWT cookie
Returns:
- 200
```json
{
"msg": "User successfully deleted"
}
```
- 401 || 400
```json
{
"error": "<corresponding msg>
}
```