A step-by-step tutorial on adding authentication and authorization to your Next.js apps, with Auth0. We’ll be using a Next.js SDK to connect our application to the Auth0 API and will create the dynamic API route for React.
https://smashingmagazine.com/2021/05/implement-authentication-nextjs-auth0/