Client | Add app HTTP interceptors
shaharkazaz opened this issue · comments
Shahar Kazaz commented
The app should have 2 main HTTP interceptors:
- Auth - will chain the user's token (in case the user is logged in) onto every request made to the server.
- Errors - will notify using a snackbar component on every error the happened while making an HTTP request if the server response is
401 Unauthenticated user
the interceptor will call the logout functionality.