This is a simple login portal using NextJS, React, Mantine UI and Next Auth. This specific configuration is set to use Azure as it's service provider but is fully customizable to a number of providers (see https://next-auth.js.org/providers/credentials). This is boilerplate code meant to make login portals quick to get up and running if I ever need them on the fly. I usually grab this and tweak it to my liking to get the ball rolling on my own projects ...
Create a .env.local in the root directory and configure it according to https://next-auth.js.org/configuration/options and the cooresponding provider, in this case https://next-auth.js.org/providers/azure-ad.