interledger / rafiki

An open-source, comprehensive Interledger service for wallet providers, enabling them to provide Interledger functionality to their users.
https://rafiki.dev/
Apache License 2.0
233 stars 83 forks source link

[BUG]: Admin UI got error when the session expires and the user tries to login again. It enters in an infinite auth loop. #2840

Open Emanuel-Palestino opened 1 month ago

Emanuel-Palestino commented 1 month ago

Bug Report

Describe the bug

When the session at the Admin UI expires, appears the welcome page to login again. If the user tries to login again using the welcome page that appears in the interface, it gets a 404 error. Then if the user click the Go to homepage button, it's redirected to root auth page, so if the user tries to login, it gets the 404 error over again.

To Reproduce

Important: Don't reload the page at any time.

  1. Run the rafiki instance
  2. Go to Admin UI and login
  3. Using the developer tools of your browser, delete the page cookies. (This is made in order to simulate the session expiration).
  4. Now, try to move to another section (wallets, peers, wallet details, etc).
  5. Try to login again, using always the buttons that appears in the interface.
  6. You will enter in the auth loop.

Screenshots

  1. Session expired, welcome page appears. image
  2. You try to login again, you got the 404 error. image
  3. If you try to go to homepage and login, you got the same error. image

I think this is not a correct behavior. The user should be able to login again without the need of reload the page.

golobitch commented 1 month ago

What version of rafiki-frontend are you running?

Emanuel-Palestino commented 1 month ago

I am running the v1.0.0-alpha.15 of rafiki c: