adamsoffer / next-apollo

React higher-order component for integrating Apollo Client with Next.js
MIT License
482 stars 64 forks source link

Question: Is it possible to forward cookies to the graphql server? #99

Closed abir-taheer closed 3 years ago

abir-taheer commented 3 years ago

I'm using a jwt stored in a cookie passed to the server to handle auth. The cookie should be available in the ctx variable but I'm not sure how to make it so that the client forwards the cookie from the client request to the graphql server. Is this possible/can you provide a quick example please?