Logout
POST /api/auth/logout
​
Log out the current user.
Response​
-
200 OK
{ "success": true, "message": "User logged out successfully" }
- Clears the authentication cookie.
-
401 Unauthorized
{ "success": false, "message": "Not authenticated" }
Example​
curl -X POST http://localhost:8080/api/auth/logout