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

Is there an example on how to implement this via a Graph QL API ?

Hi, thanks for your efforts. When i use the link in my client config, i get this eror: ``` Type 'TokenRefreshLink' is not assignable to type 'ApolloLink | RequestHandler'. Type...

Currently, `fetchAccessToken` must return a `Promise` object. This works fine if the token is fetched using `fetch` via REST. However, my API also uses GraphQL for refreshing tokens (as I...

Hello, as I`m trying to refresh access token ani it runs with an error "response.text is not a function". The flow is following - on login user receives access token...

When I am trying to use this with `@nuxtjs/apollo`'s `preAuthLinks` option, I am getting the following error. ![image](https://user-images.githubusercontent.com/30376020/98795735-8228fe00-2445-11eb-9243-02453ff59cdd.png)

Hello, I have a GraphQL mutation to refresh the token. Can I somehow use the mutation in the fetchAccessToken function?

Would be good to document npm (or yarn) install of apollo-link and if the example included the import it. Thank you.

i was using this the handle response fires only one time at the home route and no where else

Hi! In `apollo-link-token-refresh v.0.3.1` I see the warning message: ``` Argument type {fetchAccessToken: (function(): Promise), handleError: (function(): null), isTokenValidOrUndefined: (function(): boolean), handleResponse: (function(): function(...[any]=))} is not assignable to parameter type...

Seems this package is throwing an error with Apollo client version 3.0, but its working with 2.6 though. Error: queuing.js:47 Uncaught (in promise) TypeError: request.operation.toKey is not a function