Pregunta

I'm trying to implement Firebase's Google authentication in the popup window of a chrome extension. The regular email/password authentication works fine, but when I try with Google auth, it hangs on a grey screen whose URL begins with "https://auth.firebase.com/auth/google/callback?state=..."

Any idea what the issue is?

¿Fue útil?

Solución

Note that Firebase Simple Login is a separate service built on top of Firebase Authentication, intended to simplify authenticating users and generating Firebase Auth. Tokens for use in Security Rules.

At the time of this writing, authenticating via pop-up in a browser extension is unsupported via Firebase Simple Login, due to the constraints around authenticating origins in OAuth. In order to use Firebase Simple Login for this task, the login will have to take place on a hosted domain.

See Firebase Authentication in a Chrome Extension Background Page for related information and answer.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top