axios-auth-refresh icon indicating copy to clipboard operation
axios-auth-refresh copied to clipboard

Library that helps you implement automatic refresh of authorization via axios interceptors. You can easily intercept the original request when it fails, refresh the authorization and continue with the...

Results 37 axios-auth-refresh issues
Sort by recently updated
recently updated
newest added

It seems that never versions of axios require a different type to be used for interceptors, so I replaced them all. Interestingly the resulting JS is the same as before....

Is this good to go with latest Axios and React Native 0.72.1 ?

here is my code in the first interceptor I need to transform error message second is for refresh token logic but seems like it doesn't work like this. first interceptor...

feature request shouldRefresh as promise ```ts async shouldRefresh(error: AxiosError): Promise { const value = await localforage.getItem('refresh_token'); return Boolean(value) } ```

How does one use this package with requests that store the auth-token inside multipart-formdata instead of the header? I don't seem to be able to set the body inside the...

Hi, this is my configuration ``` const sendRequest = axios.create({ baseURL: import.meta.env.VITE_SERVER_URL, withCredentials: true }) const refreshAuthLogic = (failedRequest) => sendRequest.post('/admin/refresh').then(() => { setUserInfo(prev => ({ ...prev, logged: true, }))...

what i use: `createAuthRefreshInterceptor(instance, refreshAuthLogic, { statusCodes: [401, 403], pauseInstanceWhileRefreshing : true })` ![image](https://user-images.githubusercontent.com/26007970/194987923-b296d84e-8da0-47d1-a687-3cb6deaa9ec6.png) but have a situation. my project have multiple axios instance. so i use 'axios-auth-refresh' library. when...

Hi every one, i have api.ts file like that ``` const client = axios.create({ url: process.env.NEXT_PUBLIC_BASE_URL, headers: { "x-api-key": process.env.NEXT_PUBLIC_DGG_API_KEY, }, }) export const refreshAccessToken = async () => {...

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.9.4 to 5.4.3. Release notes Sourced from typescript's releases. TypeScript 5.4.3 For release notes, check out the release announcement. For the complete list of fixed issues, check...

dependencies
javascript

Bumps [axios](https://github.com/axios/axios) from 1.6.0 to 1.6.8. Release notes Sourced from axios's releases. Release v1.6.8 Release notes: Bug Fixes AxiosHeaders: fix AxiosHeaders conversion to an object during config merging (#6243) (2656612)...

dependencies
javascript