graphql-request
graphql-request copied to clipboard
Request Middleware doesn't accept async methods
Hey everyone!
I'm trying to implement a refresh-token strategy using the new middleware feature to request the new tokens if the token has expired.
To get the new token, I've to make a new request and wait for the result, but the new requestMiddleware()
doesn't accept an async method.
Is planned in future to allow to return a Promise<…>
and accept an async method, or to implement any new feature to allow to handle the refreshToken?
Also would be a nice addition to support Promises
Given the merge of https://github.com/prisma-labs/graphql-request/pull/379 is this still an issue?
Given the merge of https://github.com/prisma-labs/graphql-request/pull/379 is this still an issue?
I think is canbe closed