DEV Community

Discussion on: Google Authentication in a Chrome Extension with Firebase

Collapse
 
simple_solutionszaf_b22a profile image
Simple Solutions Zaf • Edited

@deepblue597 I also had the same problem. Thanks for the steps you shared.

After following your recommendations, in firebase-project/public/signInWithPopup.js, I replaced:

import { initializeApp } from 'firebase/app';
import { getAuth, signInWithPopup, GoogleAuthProvider } from 'firebase/auth';

With:
import { initializeApp } from 'gstatic.com/firebasejs/11.0.2/fire...';
import { getAuth, signInWithPopup, GoogleAuthProvider } from 'gstatic.com/firebasejs/11.0.2/fire...';

That worked for me. Let me know if it worked for you?

My next issue is, how do I write to the database once logged in?

Collapse
 
allison_xia_8383d29a9e2ca profile image
allison xia

@deepblue597 @simple_solutionszaf_b22a hi thank you guys so much for providing the solutions! I had the same error message but after i followed your steps, the authorization started to work smoothly.