My goal is to create a new user with an email, password, and additional data such as their name. This is how my user interface looks:
export interface UserInterface {
id?: string;
name: string;
email: string;
password: string;
status: string
constructor(auth) {
this.id = auth.uid
}
}
In my service, I have the following method:
createUser(user: UserInterface) {
return this.angularFireAuth.auth.createUserWithEmailAndPassword(user.email, user.password)
}
I would like to know how to add attributes for name and uid in the ID field.