diff options
| author | UMTS at Teleco <crt@teleco.ch> | 2026-02-15 15:53:50 +0100 |
|---|---|---|
| committer | UMTS at Teleco <crt@teleco.ch> | 2026-02-15 15:53:50 +0100 |
| commit | fa680b24d1123f9de27fc752943e43c86c692314 (patch) | |
| tree | e4875712a0f8298819c490dc42e881218a2175bc /auth/logout.md | |
JAYSON DERULO
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 | |
