Skip to content

Logging in and out multiple times without reloading the page results in an error popup #58

@dreiekk

Description

@dreiekk

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!

  1. Open https://www.sparkbot.me/
  2. Login
  3. Logout
  4. Login

Expected behaviour

No response

Screenshots

grafik

Metadata

Metadata

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