Chrome Extension, Manifest V3, Firebase Auth Google Signin

972 views
Skip to first unread message

john....@gmail.com

unread,
Oct 17, 2021, 11:58:11 PM10/17/21
to Firebase Google Group
Hi,

I made a webapp with Firebase auth with Google Sign In.

I want to create a modern Chrome Extension that allows users to login via Firebase Auth Google Sign.

However, it appears Auth Google Sign is not supported in Manifest V3 as per this doc: https://firebase.google.com/docs/auth/web/google-signin#expandable-3

"The newer Manifest V3 only allows background scripts in the form of service workers, which cannot perform the popup operations at all."

How can developer creates a Chrome Extension V3 app and allow users to sign-in using Google Signin?

Thanks!

Joshua Dance

unread,
Sep 28, 2022, 5:55:27 PM9/28/22
to Firebase Google Group
I had the same question of how to use Sign In With Google from a Chrome Extension.

Found this article which proposes a solution -> https://prog.world/firebase-auth-in-chrome-extension-manifest-v3/

Steps would be:
1. Use chrome.identity API to get the Google OAuth
2. Use that token to authorize Firebase with Auth.signInWithCredential()

I haven't successfully implemented it yet, but I am going to try. 

Reply all
Reply to author
Forward
0 new messages