Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an alternative Apollo client that can pass cookies manually #16

Open
rglover opened this issue May 19, 2021 · 0 comments
Open

Add an alternative Apollo client that can pass cookies manually #16

rglover opened this issue May 19, 2021 · 0 comments
Assignees
Labels
feature Something to add

Comments

@rglover
Copy link
Contributor

rglover commented May 19, 2021

When you're using getServerSideProps, in order to authenticate a GraphQL request, cookies have to be available. By default the cookies are present but not relayed to Apollo. This can be done by setting the request headers manually, but it involves a good amount of boilerplate.

Need to add a wrapper function that streamlines this so you can choose to either send a normal request or one with cookies (and other headers) passed manually.

@rglover rglover added the feature Something to add label May 19, 2021
@rglover rglover self-assigned this May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Something to add
Projects
None yet
Development

No branches or pull requests

1 participant