Angular 将所有用户从firebase获取到自己的后端

Angular 将所有用户从firebase获取到自己的后端,angular,ionic-framework,ionic4,Angular,Ionic Framework,Ionic4,我正在尝试为我的ionic 4应用程序使用google登录+firebase,所有用户都在firebase中,但我可以将用户信息发送到我自己的后端吗?我的意思是,我还为我构建了管理面板,以显示我在ionic应用程序中获得的所有信息,这些信息也显示在我的管理面板中 这是我的密码: login() { this.googlePlus.login({ webClientId : '927898787134-spvfdmvm9apq0e1fo2efvvura8vqpid8.apps.

我正在尝试为我的ionic 4应用程序使用google登录+firebase,所有用户都在firebase中,但我可以将用户信息发送到我自己的后端吗?我的意思是,我还为我构建了管理面板,以显示我在ionic应用程序中获得的所有信息,这些信息也显示在我的管理面板中

这是我的密码:

login() {
    this.googlePlus.login({
      webClientId : '927898787134-spvfdmvm9apq0e1fo2efvvura8vqpid8.apps.googleusercontent.com',
      offline : true
    }).then(res => {
      firebase.auth().signInWithCredential(firebase.auth.GoogleAuthProvider.credential(res.idToken))
      .then(suc => {
        // console.log('users', JSON.stringify(suc));
        this.httpwelcome.post('https://mobile.youthscarf.id/ionic/login_data.php', { userData: res.userData, user: res.user, displayName: res.displayName, email: res.email}).subscribe((response) => {
           console.log(response);
           console.log(JSON.stringify(response));
         });
        localStorage.setItem('user', JSON.stringify(suc));
      }).catch(ns => {
        console.log('Unsucessful');
      });
    });
  }

我试图使用HTTPPOST,但似乎不起作用。有人知道如何做到这一点吗?

为什么要在firebase和我们的服务器上制作两个数据库副本。你可以在angular中创建管理面板,你可以从angular本身读取firebase数据库。这可能与我的管理面板使用php解决的问题有关,因为对于我的客户来说,他们没有访问firebase的知识,所以我想如果我给他们一个管理面板会很容易。当然,这不仅仅是为了显示用户,而是为了更改我应用程序中的所有内容