fetch-intercept icon indicating copy to clipboard operation
fetch-intercept copied to clipboard

Interceptor library for the native fetch command inspired by angular http intercepts.

Results 39 fetch-intercept issues
Sort by recently updated
recently updated
newest added

I currently have this in my `auth.tsx` file, and it works fine ``` import fetchIntercept from 'fetch-intercept'; export default fetchIntercept.register({ request: function (url, config) { // Modify the url or...

I didnt want to comment on issue #16 but i see the same issue. i really just care about intercepting a 401 but the response console.log is never hit. even...

Type '(response: FetchInterceptorResponse) => Promise' is not assignable to type '(response: FetchInterceptorResponse) => FetchInterceptorResponse'. export interface FetchInterceptor { request?(url: string, config: any): Promise | any[]; requestError?(error: any): Promise; response?(response: FetchInterceptorResponse):...

Greetings! First of all, thank you for all your effort on the library, works great 😄 I am using version: 2.4.0. I am using the interceptors to measure response time,...

question

Bumps [karma](https://github.com/karma-runner/karma) from 0.13.22 to 6.3.16. Release notes Sourced from karma's releases. v6.3.16 6.3.16 (2022-02-10) Bug Fixes security: mitigate the "Open Redirect Vulnerability" (ff7edbb) v6.3.15 6.3.15 (2022-02-05) Bug Fixes helper:...

dependencies

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.5.7 to 1.14.8. Commits 3d81dc3 Release version 1.14.8 of the npm package. 62e546a Drop confidential headers across schemes. 2ede36d Release version 1.14.7 of the npm package. 8b347cb...

dependencies

Similar logic to how the axios interceptor works. So for any 400 errors, we can refresh the token and send back the original request. But without access to the original...

Hi, Is it possible to perform asynchronous calls in a "request" interceptor? I have an interceptor that gets the access token from the localforage library but all methods are asynchronous....

Hi, I am trying to make a common interceptor to authorize all my outgoing requests. My logic is as follows: All my outgoing requests/API calls passes through the interceptor first...