Mladen Danic
Mladen Danic
@mvanroon It still leaves a problem that the refresh token will expire at some point in the future, and the call to the backend will throw an exception that will...
@mvanroon I get an error in the console even though I chained a `catch()` to the call. I'm assuming that's because the interceptor uses a different axios client instance to...
When I create my refresh function llike this: ``` const requestRefresh = (refresh_token) => { return axios.post(`${appConfig.base_url}/api/v1/auth/refresh_token`, { refresh_token }) .then(response => { return { accessToken: response.data.access_token, refreshToken: response.data.refresh_token };...
@mvanroon The problem is that the exception thrown when I try to fetch something from the api does not have `error.response.status === 401` because the exception is thrown from the...
@LucasRoquilly @roderikpeeters I just went through the code, and I can see that the library adds whatever is set to the `api_key` field in the constructor config as the bearer...