showtime
showtime

Reputation: 1462

How can I add properties to the user object when creating a user with email&password?

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

Answers (1)

Doug Stevenson
Doug Stevenson

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

Related Questions