April 2018
Intermediate to advanced
284 pages
6h 43m
English
Using Authentication triggers, we can execute function code in response to the creation and deletion of a user via Firebase Authentication.
To create a Cloud function that is executed if a new user is created, we can use the following code:
exports.userCreated = functions.auth.user().onCreate(event => { ... });
According to the Firebase documentation, user creation events for Cloud Functions occur in the following scenarios:
A Cloud Functions event is not triggered when a ...