Google authentication in firebase showing blank screen Progressive Web App

后端 未结 3 714
轮回少年
轮回少年 2021-02-07 05:27

I am on the way to create my first Progressive web app which uses firebase for storing data. I am also using Gmail as an entry point for all the users that would us

3条回答
  •  离开以前
    2021-02-07 06:01

    Looks like on mobile your app opens authentication not a new tab of your current browser but in a new browser, so it cannot make a valid redirect back to your initial browser after authentication with Google. If you will sign in with redirect you will stay in the same browser, so you need to change your service to:

    loginWithGoogle() {
        return this.afAuth.auth.signInWithRedirect(new firebase.auth.GoogleAuthProvider());
    }
    

提交回复
热议问题