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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: