On Authentication Triggers I Am Getting Displayname As Null
I want to use users data on authentication trigger. But when I am using them it gives me null. What is wrong with my code? exports.sendWelcomeMessage = functions.auth.user().onCrea
I speculate you are creating the user and then setting the display name (eg via 2 calls).
onCreate
triggers as soon as the user is created, eg createUserWithEmailAndPassword
.
When you call updateProfile
to set the displayName
, the onCreate event would have already been triggered.
Post a Comment for "On Authentication Triggers I Am Getting Displayname As Null"