Hi, how can I set an auth header in a request to a...
# orm-help
m
Hi, how can I set an auth header in a request to a binding created using
graphql-bindings
? Thanks!
n
you can derive your own binding from
graphql-binding
that passes in the correct header. Here's an example: https://github.com/graphql-binding/graphql-binding-github/blob/master/src/index.ts
🙌 1
m
@nilan Thanks. What if I want to use the token from a request though? I have a user microservice that I am talking to through a binding in a gateway server. The gateway server is supposed to pass on the the token from the request it receives through the binding
is that possible? seems bad practice to reinit the binding every time a request is resolved in the gateway
Or should I just pass the token as a query parameter?