Replies: 1 comment 3 replies
-
Oh it is copied into ctx.request.headers inside a resolver, just not inside the context function.
Why would it not be available in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/mercurius-js/mercurius/blob/master/docs/subscriptions.md#build-a-custom-graphql-context-object-for-subscriptions
there is an example given here:
how do we get
Authorization
header?My FE is using apollo client and I define it like this:
the problem is I am only able to see
Authorization
in myonConnect
data.payload.I am not able to access it through headers in context.
It would be nice if I could pass that payload into context somehow. Alternatively if I could access connection in the onConnect I could identify it and associate it on my side I think.
Beta Was this translation helpful? Give feedback.
All reactions