POST /api/users/logout 🔒 Auth Required

Logout the current user and invalidate the session

📋 Endpoint Details

Method: POST
Path: /api/users/logout
Authentication: Required - Include Authorization: Bearer <token> header

📥 Response Example

{ "success": true, "message": "Logout successful" }

💡 Usage Tips

cURL Example:

curl -X POST \ http://localhost:3000/api/users/logout \ -H "Authorization: Bearer YOUR_TOKEN_HERE"
← Back to Home