Closed spardo83 closed 4 years ago
Didn't try it but maybe your function to handle authentication.refreshToken()
response should return response.data.access_token
instead of response
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
After the token has refreshed the api calls in flight end with 401, i´m using $resource to call server. here is my code ` if (options && options.url.substr(options.url.length - 5) == '.html') { return null; }
Te token refresh returns 200 but te subsequent calls made it before the token has been refreshed results in 401. May be i understend wrong but i think the api hangs the api calls and refresh token then make the rest of the calls?