apollo-link-token-refresh icon indicating copy to clipboard operation
apollo-link-token-refresh copied to clipboard

Apollo Link that performs access tokens (JWT) renew

Results 27 apollo-link-token-refresh issues
Sort by recently updated
recently updated
newest added

What's the best way to retry a query that 401 failed when the token needs to be refreshed as a result of `isTokenValidOrUndefined`. I'm also using `@apollo/client/link/retry` but doesn't seem...

Context: If the refresh token has expired, it will trigger handleError. Inside, this condition confirms that the refresh token has expired and calls logout, clearing sessions local cache. ``` //...

I am getting warnings in my terminal when I run my application saying, ( WARNING in ./node_modules/apollo-link-token-refresh/lib/queuing.js [1] Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from /node_modules/apollo-link-token-refresh/src/queuing.ts file:...

Every example using this package shows that setAccessToken can be called in handleFetch and the new Access Token can be used in the next link. But my AuthLink is retrieving...

I've been encountering errors while using this library. If it is a direct single object or one-dimensional object it is working. However, if the response from API consists of multiple...

I'm trying to extract the new token that is generated when the old one has expired. But when I try to access it, it is undefined: ```js handleResponse: (operation, accessTokenField)...

Any chance the operation object can be passed to the isTokenValidOrUndefined function? I am looking to read from the cache at this point. For example, to read my token from...

Hi, I checked some tutorials and went through issues here on repo and what I see is that in `isTokenValidOrUndefined()` function every one basically do the same check, which is...

See https://github.com/apollographql/apollo-link/issues/646#issuecomment-399877200

Is there a way we can set up retries on this one, for example, my GraphQL response has an empty token value?