Where we are now
When we try to run IC locally, we mock the auth token, which expires, tries to get refreshed, and gets deleted from local storage. This hinders development process.
Where we want to get
Refresh should work only on prod and in local-env. When running the service locally, we don't want the token to get cleared from local storage. This will let us develop locally without manually updating access token in local storage.
Solution
Needs further research how we can turn off the refresh.
Maybe in the package using a prop or individually in each service using a new env variable.
Where we are now
When we try to run IC locally, we mock the auth token, which expires, tries to get refreshed, and gets deleted from local storage. This hinders development process.
Where we want to get
Refresh should work only on prod and in local-env. When running the service locally, we don't want the token to get cleared from local storage. This will let us develop locally without manually updating access token in local storage.
Solution
Needs further research how we can turn off the refresh.
Maybe in the package using a prop or individually in each service using a new env variable.