Next.js Discord

Discord Forum

How to pass localStorage data from browser to SSR so I can set Authorization header in ApolloClient

Keeshond posted this in #help-forum
Open in Discord
I'm trying to implement Authorization via Header in ApolloGraphQL. I need to access localStorage data to send to nextjs server so the server can instantiate an apolloClient with the Authorization token setted

0 Replies