diff options
Diffstat (limited to 'auth/logout.md')
| -rw-r--r-- | auth/logout.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/auth/logout.md b/auth/logout.md new file mode 100644 index 0000000..4d0d469 --- /dev/null +++ b/auth/logout.md @@ -0,0 +1,27 @@ +# POST /auth/logout + +[back to auth](README.md) /// [home](../README.md) + +Kill your yourself. Requires a valid session token obviously. + +## Request + +No sexy json derulo body needed. Just send the token in the header: +``` +Authorization: Bearer <token> +``` + +## Success Response + +```json +{ + "success": true, + "message": "Logged out successfully" +} +``` + +## Error Response + +| Code | When | +|------|-----------------------------------------------| +| 401 | no token provided or token is invalid/expired | |
