civictechdc/us-congress-pizza-flag-tracker-frontend

FRONTEND: Redirect to log in screen if not logged in

Closed this issue · 3 comments

Currently the app defaults to showing the open orders upon first load. If a user is not logged in (as they never are when naively starting the app) this means that the first screen they see is a giant 401 error code, with no way to bypass. We should add a new, blank screen, or change the behavior of the 401 response so it doesn't block someone from then logging in.

This is possibly a duplicate of 12 on the backend, although one could argue that this issue is related to the frontend behavior

I closed 12 in backend. If not logged in, since the user cannot do anything, it makes sense to show the log in screen.

I just created a PR to sort of address this and had forgotten I had created an issue for it, so I linked the issue and PR. See #30