This example demonstrates how to use the oauth-fech package to make requests to both public and OAuth-protected resources in a React application.
👉 Check our live demo: oauth-fetch Playground
Install the dependencies using npm:
npm installThis example already uses a demo application with Auth0, if you want to change with your own, consider changing Auth0Provider props in App.tsx.
npm run dev