The API is broken when passing a cookie + 2FA enabled
All the API calls from my main browser (such as https://datasets-server.huggingface.co/splits?dataset=mnist) fail with

```json
{"error":"Unexpected error."}
```

The underlying logs are:

```
INFO: 2024-03-11 22:38:50,327 - httpx - HTTP Request: GET https://huggingface.co/api/datasets/mnist/auth-check "HTTP/1.1 302 Found"
INFO:     10.0.95.34:60730 - "GET /splits?dataset=mnist HTTP/1.1" 500 Internal Server Error
```

Related to https://github.com/huggingface/datasets-server/issues/2377.

It only appears from my main browser, where I'm logged in on huggingface.co. Private browsing, curl, or another browser fixes the issue.
The API is broken when passing a cookie + 2FA enabled: All the API calls from my main browser (such as https://datasets-server.huggingface.co/splits?dataset=mnist) fail with

```json
{"error":"Unexpected error."}
```

The underlying logs are:

```
INFO: 2024-03-11 22:38:50,327 - httpx - HTTP Request: GET https://huggingface.co/api/datasets/mnist/auth-check "HTTP/1.1 302 Found"
INFO:     10.0.95.34:60730 - "GET /splits?dataset=mnist HTTP/1.1" 500 Internal Server Error
```

Related to https://github.com/huggingface/datasets-server/issues/2377.

It only appears from my main browser, where I'm logged in on huggingface.co. Private browsing, curl, or another browser fixes the issue.