The main advantage of using Firebase Authentication is that we need not maintain any server or authentication system. But to create an authentication system with username/password credentials, we are required to have a custom authentication system. Using Cloud Functions, solves the problem of having a server or custom authentication system…