I roughly figured out how to implement interceptors. But I cannot understand specifically in what cases to use it.
For example, as I understand it, interceptors are used during authorizations to update tokens in the local storage. Good.
But I cannot understand in what cases still they are used and in what cases they cannot be used. Or are they directly used in all requests?
If you are a consumer-side developer, you can use the Interceptor Framework for many different purposes. Some of the most common use cases for interceptors include:
example: https://bilot.group/articles/using-react-router-inside-axios-interceptors/