Authentication in Next.js
I’m currently using Auth.js for authenticating my Next.js app to protect both the frontend and backend. For this, I am using Azure AAD as the provider. To successfully authenticate, we require three fields: tenant ID, client ID, and client secret.