Steps to replicate the issue:
- Make an API request with an invalid centralauthtoken parameter.
What happens?:
- The API sleeps for $wgCentralAuthTokenSessionTimeout seconds (default 3) before returning an error.
What should have happened instead?:
The API should have immediately served an error response.