Reputation: 1462
I am creating user using this function in React-Native:
const createnewuser = await auth()
.createUserWithEmailAndPassword(register_email, register_password)
As you can see I am only giving email and password as parameters. Where should I add other properties (such as emailVerfied
and displayName
) to the user object?
Upvotes: 0
Views: 60
Reputation: 317497
You can't set emailVerified - that's set for you after the email verification process finishes.
If you want to set other profile parameters, you will have to make a call to updateProfile as described in the documentation.
Upvotes: 2