next auth with custom backend

I have a nextjs web app. I have a backend that is managed as a separate server, repo, etc. The backend is where it checks for user role to change the responses, or prevent some users from using some routes etc. How should I go about connecting these two?
I tried including credentials from the front end fetch requests but the backend won’t receive the next auth set cookies since they’re not set by the same server.
Was this page helpful?