Distributed application supported

Hi - I can see and have a working example of Auth0 working for React. My use case is with a React frontend and a node (NextJs) API with all the business logic. I cannot see how to have the API authentication working with the React one so the API rest call requires logged in user and their role . I believe this is ‘backend for frontend’ scenario. Is there an example of this use case?