Logout
Logout the currently authenticated user and invalidate their JWT token.This endpoint requires authentication. Include the JWT token in the Authorization header.
Endpoint
Authentication
This endpoint requires a valid JWT token in the Authorization header:Request
No request body parameters required.Response
Indicates whether the request was successful
Success message indicating the user logged out successfully
Example Request
Example Response
Error Responses
401 Unauthorized - Already logged out
401 Unauthorized - Already logged out
401 Unauthorized - Invalid token
401 Unauthorized - Invalid token
401 Unauthorized - Token expired
401 Unauthorized - Token expired
401 Unauthorized - Missing token
401 Unauthorized - Missing token