Next.js Discord

Discord Forum

Using Axios with NextAuth on server component with Authentication

Unanswered
Minskin posted this in #help-forum
Open in Discord
MinskinOP
Hey, i would like to access the users bearer token to send a request using axios to my third party backend. How can this be achieved? Using the getSession function from nextauth always retuns in null.

1 Reply

MinskinOP
I would like to use axios interceptors