Adds a beforeEveryRequest method to the client instance that will run before any requests are made through it. This gives us a change to make sure things like the auth headers are up to date.
Provides a consistent way to override instance methods (like beforeEveryRequest and handleError)
beforeEveryRequest
method to the client instance that will run before any requests are made through it. This gives us a change to make sure things like the auth headers are up to date.beforeEveryRequest
andhandleError
)