Auth onUpdate trigger for v1 and v2 functions
In the same way, we have onCreate and onDelete, it will be very helpful to have an onUpdate option. For example, so we can react to an email address change.
-
Mobi Linear commented
We need to Use Firebase Cloud Functions to listen to Firebase Authentication lifecycle events, specifically the onAuthUpdate event, to detect password changes.
-
Mobi Linear commented
Currently, auth functions (triggers) supports onCreate and onDelete.
Any plans to add onUpdate/onWrite trigger which will allow trigger a function when user is updated.
I understand this is not a common use case since users doesn't change much after first signup but if you set custom claims to users and want to sync it with Firestore users collection for example such trigger can be helpful.