This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
jwtInterceptor - tokenGetter is not called because of angular caching #60
Labels
closed:stale
Issue or PR has not seen activity recently
Hi guys. I noticed that sometimes tokenGetter is not called during request and instead of sending refresh token request to fetch updated access token, interceptor just do nothing. As I understand angular caches headers and because of next lines the tokenGetter is not called:
Maybe it will be better to add configurable parameter, something like "forceHearedUpdate" and if this parameter is true then omit the
if (request.headers[config.authHeader])
branch of code.The text was updated successfully, but these errors were encountered: