Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ref child and set firebase

$
0
0

@rafaelmoura wrote:

I’m trying add data in Authentication module and Database module through this code

createUser(user: any, path: string): Promise<any> {
    return firebase.auth().createUserWithEmailAndPassword(user.email, user.password)
    .then( newUser => {
      firebase.database()
      .ref(`/users/${path}/`)
      .child(newUser.uid)
      .set(user);
    });
  }

in other projects this work fine, but in this I don’t know, this way its sava data (email and password) only in Authentication Module but not in Database Module, whats happening, someone ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>