This is the most secure authentication system for login and signup and also has a password reset mechanism.
You had to add your own API and need to set some .env variables and also need to install few NPM modules.
Just install this backend and configure it with your frontend.
I asked you to make a more secure function in this file.