[UI] Redirect user to login page if API returns 401 UNAUTHORIZED error #129
Labels
enhancement
New feature or request
good first issue
Good for newcomers
UI
to label tasks requiring change in UI
We make calls to our API to perform operations and fetch data. Some of the calls are protected by
authentication
.API will respond with HTTP 401 UNAUTHORIZED error for following scenarios for protected API endpoints:
Goal for this issue is to add a middleware for each request we make to our API, perform a check on the response.
If the response code is 401, redirect user to the Login page instantly.
The text was updated successfully, but these errors were encountered: