You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, like the title says.
What I'm trying to achieve is this:
We have a backend api in C# and then front end application (Nextjs) https://localhost:7772 = Backend api
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, like the title says.
What I'm trying to achieve is this:
We have a backend api in C# and then front end application (Nextjs)
https://localhost:7772 = Backend api
https://localhost:3000 nextjs app
now I've set up auth js and mostly everything works as expected but I want to use a proxy following this example https://github.com/nextauthjs/next-auth/pull/10761/files
Everything works correctly when I either use 'use client' and fetch in client or I navigate to https://localhost:3000/api/random-endpoint
but if I for example try and use fetch('https://localhost:3000/api/random-endpoint') inside a page or layout on the server the proxy endpoint will not pick up the session for some reason.
I'm not sure if this is to expected?
Beta Was this translation helpful? Give feedback.
All reactions