Skip to content

User Logout

Logout

  • Route: POST /logout
  • Description: Logs out the user and invalidates the session.
  • Method: POST
  • Successful Response:
    • Status Code: 200 OK
    • Content:
      {
          "detail": "Logged out successfully"
      }
      
  • Bad Response:
    • Status Code: 401 Unauthorized
    • Content:
      {
          "detail": "Invalid or expired token"
      }