5apps / stashboard

A remoteStorage account dashboard
https://5apps.com/storage
MIT License
6 stars 2 forks source link

Fix endless redirects #11

Closed galfert closed 4 years ago

galfert commented 6 years ago

Right now, when the network request to /users/me fails, the frontend just assumes an auth error and attempts to re-authorize. This leads to endless redirects between the 5apps server and the frontend app.

Instead it should only attempt the reauthorization when the request failed with an actual auth error, and show an error message otherwise.