A Node.js app to automate Firebase email actions like password reset and email verification
A minimal Node.js application that wraps Firebase Authentication to handle email actions like password reset, email verification, and email recovery. Built with Express.js and Firebase, this app automates the process of handling these emails, saving time and effort in any Firebase-related projects.
This app automates the handling of Firebase email actions (like password reset or email verification).
If you prefer not to set up your own server, you can use the hosted version. Just follow these steps:
Go to the Firebase console and create a new Firebase project.
Navigate to Authentication > Sign-in method > Email/Password, and enable it.
In the Firebase console, go to Settings > Authorized Domains, and add your Node.js application URL (either my hosted URL or your custom domain).
In the Templates section of Firebase Authentication, click the edit icon for the email actions.
Customize the action URL by entering the following format:
https://your-nodejs-hosting-url/__/auth/action
Save the settings.
To install and run the app locally, follow these steps:
$ git clone https://github.com/samay15jan/firebase-email-handler
$ cd firebase-email-handler && npm install
$ npm start
You can also deploy your own instance of the app by running it in a Docker container. Here's how:
$ git clone https://github.com/samay15jan/firebase-email-handler
$ cd firebase-email-handler
$ docker build -t firebase-email-handler .
$ docker push your-dockerhub-username/firebase-email-handler
$ docker run -p 3000:3000 firebase-email-handler
You can use cloud platforms such as Render, Google Cloud, or Azure to deploy your Docker container.
MIT License here