title: Why i'm getting a function instead a value of my UID of the currentUser on Ionic 4?
body: <p>When i'm doing console.log on a method which one SHOULD return the uid of the current user, it return the function. why?</p>
  
  <p>Different methods i tried to get UID:</p>
  
  <ol>
  <li><p>this is value of current user: </p>
  
  <pre><code>function () {
      return this.afAuth.auth.currentUser.uid;
  }
  </code></pre></li>
  <li><p>this is the value of the current user: </p>
  
  <pre><code>function () {
      return this.user.uid
   }
  </code></pre></li>
  </ol>
  
  <p>What is the correct one? Why cannot get the value? When i create the user uid the method is the next: </p>
  
  <pre><code>  const res = await this.afAuth.auth
                  .createUserWithEmailAndPassword(username, password)
  
    this.afstore.doc(`/users/${res.user.uid}`).set({
      username
    })
  </code></pre>