Next.js Discord

Discord Forum

nextjs13 jwt token

Unanswered
Tonkinese posted this in #help-forum
Open in Discord
TonkineseOP
I need to get the jwt token from the usessession and pass it on to this post but I don't know how to do that because it's a server component

2 Replies

see Auth.js It’s not that simple.
Broad-snouted Caiman
I think this is what you’re looking for: https://next-auth.js.org/configuration/nextjs#in-app-directory