Next.js Discord

Discord Forum

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

Britannia Petite posted this in #help-forum
Open in Discord
Britannia PetiteOP
I'm following tutorial here

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