You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
I'm trying to implement hawk authentication for my graphql endpoint. For this I need access to the request options and update the Authorization Headers.
Currently there is no way to access / update the data before the request is happening. Would be nice if there were. Since I need the actual request (including the final payload) to calculate the Headers a middlewareLink doesn't seem to work.
The text was updated successfully, but these errors were encountered:
Yeah I think this would be a great addition to the http-link package. It would also allow quite a lot of other features. Would you be up for a PR to add this?
I'd be happy to help you, or anyone else who wants to add this in!
@steffenmllr so you can pass a custom fetch to the link which allows you to intercept the request and modify it as needed when you need the fully formed request:
I'm trying to implement hawk authentication for my graphql endpoint. For this I need access to the request options and update the Authorization Headers.
Currently there is no way to access / update the data before the request is happening. Would be nice if there were. Since I need the actual request (including the final payload) to calculate the Headers a middlewareLink doesn't seem to work.
The text was updated successfully, but these errors were encountered: