A terminating Apollo Link for Apollo Client that fetches a GraphQL multipart request if the GraphQL variables contain files (by default FileList, File, or Blob instances), or else fetches a regular GraphQL POST or GET request (depending on the config and GraphQL operation).
Hello, when you create a upload link, you can only set the headers once. This is a problem when you refresh your authentication token. Apollo allows to pass a function to the connecitonParams so that every time a request is made the token is fetched. This is better. What is possible: `createUploadLink({ uri: "SOME URI", headers: { Authorization: "Bearer " + get(token) } })` What I need: `createUploadLink({ uri: "SOME URI", headers: () => { return { Authorization: "Bearer " + get(token) } } })` Currently, when I do this no headers are passed. Could you fix this? Kind Regards Luca
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be still under discussion. The issue was opened by LucaFilitz and has received 5 comments.