Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dreiekk opened this issue Apr 18, 2022 · 0 comments
Assignees
Labels
🐛Bug Something isn't working

Comments

@dreiekk
Copy link
Collaborator

dreiekk commented Apr 18, 2022

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

@dreiekk dreiekk added the 🐛Bug Something isn't working label Apr 18, 2022
@dreiekk dreiekk changed the title Logging in and out multiple times without reloading the page occures in an error popup Logging in and out multiple times without reloading the page results in an error popup Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants