Next.js Discord

Discord Forum

how to pass authorization token from nextauth to apollo client in wrapper

Unanswered
Britannia Petite posted this in #help-forum
Open in Discord
Avatar
Britannia PetiteOP
I'm following tutorial here
//https://www.apollographql.com/blog/apollo-client/next-js/how-to-use-apollo-client-with-next-js-13/

On my client I use wrapper and then I try to pass my nextauth token to header

When I use useSession it will get undefined session , looks like useSession need sometime to retrieve session

When i make async function makeclient doesnt allow me to do so

So how I pass authorization token from nextauthjs to apollo client ?

0 Replies