mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-10-13 18:44:45 +02:00
「📝」 doc(auth-api): logout doc added
This commit is contained in:
24
doc/auth/logout.md
Normal file
24
doc/auth/logout.md
Normal file
@ -0,0 +1,24 @@
|
||||
# Logout
|
||||
|
||||
Available endpoints:
|
||||
- GET `/logout`
|
||||
|
||||
Common return:
|
||||
- 500 with response
|
||||
```json
|
||||
{
|
||||
"error": "Internal server error"
|
||||
}
|
||||
```
|
||||
|
||||
## GET `/logout`
|
||||
|
||||
Used to logout the client (it just delete the cookie)
|
||||
|
||||
Returns:
|
||||
- 200 with response and clear cookie
|
||||
```json
|
||||
{
|
||||
"msg": "Logout successful"
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user