earmuff-jam / mashed

Mashed - A community care application for local communities.
1 stars 0 forks source link

Server Error should redirect the user to the landing page #150

Closed mohit2530 closed 4 months ago

mohit2530 commented 4 months ago

Acceptance Criteria

  1. When the user is not logged in for a brief interval of time, the api fails and due to that the user should not be able to consistently be on the page. But this is a little catch 22 because the user needs to refresh as of right as we tested around the app. So due to this, we possible will patch this fix in and should be able to redirect user to the landing page if the api fails with a error.
  2. the error codes are 400, 401, 500.
  3. currently the user needs to refresh to be redirect to the landing page. this is a good start, maybe we can update it to be better as well.
  4. remove the stored userID and all history as well.