I\'m using nodemailer package to manage emails and next-auth for authentication.
Next-auth providing information how to secure pages and API: https://next-auth.js.org