Implementing account email confirmation
The email confirmation process is one of the most widely spread functionalities over forms and event management applications. Firebase truly shines as it uses such an application, and now with Cloud Functions, we can make the process faster and free of backend code. So, let's see how we can make this happen.
Getting ready
Before you start adding your function's implementation, you will need to complete the extra step and configure your project with Cloud Functions. To do so, just check the Getting started with Cloud Functions recipe.
How to do it...
Let's suppose we have a form, and this form will give people the opportunity to register for the date of an upcoming book release. For this, what we will need to do is quite simple:
- We will listen to any new writing operation that is being made over our form DB route and extract the data accordingly using the following code:
exports.sendEmailWhenSubscribe = functions.database.ref(...