Describe the Bug
When logging in and out multiple times without reloading the page, an error popup shows up.
It's caused by a second POST create-session API call which will fail with an 401 Unauthorized error (Screenshot below).
{
"code": 401,
"description": "error while authorizing with discord",
"name": "Unauthorized"
}
The first POST create-session API call is fine and the user is actually authenticated despite the error message.
To Reproduce
At time of writing this, the error can be tested on the live website!
- Open https://www.sparkbot.me/
- Login
- Logout
- Login
Expected behaviour
No response
Screenshots

Describe the Bug
When logging in and out multiple times without reloading the page, an error popup shows up.
It's caused by a second
POST create-sessionAPI call which will fail with an401 Unauthorizederror (Screenshot below).{ "code": 401, "description": "error while authorizing with discord", "name": "Unauthorized" }The first
POST create-sessionAPI call is fine and the user is actually authenticated despite the error message.To Reproduce
At time of writing this, the error can be tested on the live website!
Expected behaviour
No response
Screenshots