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
Solution 1:
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.
Baca Juga
- Node.js & Mysql - Error: 1251 - Client Does Not Support Authentication Protocol Requested By Server; Consider Upgrading Mysql Client
- Socket.io Connection Keep Increasing Each Time A New Connect Has Been Made
- Is My Function Not Resolving Correctly? Also It Won't Write To Firebase To The Databse. No Errors
Post a Comment for "On Authentication Triggers I Am Getting Displayname As Null"