Skip to content

Logout API documentation should have 204, not 200, as response code #1452

@terabyte128

Description

@terabyte128

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Enable database + Bearer token strategy
  2. Go to the API explorer
  3. Use the logout endpoint

Expected behavior

The status code in the API documentation should match the actual status code. Instead, the actual status code is 204, whereas the documented status code is 200.

Configuration

  • Python version: 3.10
  • FastAPI version: 12.1.2
  • FastAPI Users version: 0.103.2

FastAPI Users configuration

n/a

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions