Answer the question
In order to leave comments, you need to log in
How to add additional information to user in firebase?
Hello! Help, I've run into this problem. I use firebase to authorize users, and when registering a user, I need to add a few more information fields (In addition to mail, user oid), for example, his middle name, or mobile phone, gender, etc. But didn't find such function in firebase documentation. Has anyone already encountered such a problem? I tend to think that such a function is not provided, but still I hope that somewhere I overlooked ... I
use angular2 + firebase ( https://angularfire2.com/api/)
Thank you for your attention!
Answer the question
In order to leave comments, you need to log in
As it is not provided, you can use your structure
https://firebase.google.com/docs/database/ios/stru...
Got it! In auth0, you can add additional information to the user in this way, when registering an account:
public signUp(email, password, nickname): void {
this.auth0.redirect.signupAndLogin({
connection: 'Username-Password-Authentication',
email: email,
password: password,
user_metadata: { // Добавление информации юзеру
markers: JSON.stringify(["arr"]),
nickname: nickname
}
}, function(err) {
if (err) {
alert('Error: ' + err.description);
}
});
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question