Firebase signInWithPopup issues

222 views
Skip to first unread message

Krisztián Balázs Farkas

unread,
Nov 22, 2021, 8:44:48 AM11/22/21
to Chromium Extensions
Hi. 

I'm developing an extension with Angular and AngularFire where I want to use the signInWithPopup method. This I can do when doing it with plain js and html, however, when I'm using the same method in Angular, the extension's popup window loses the focus instantly when I call the signInWithPopup method. 

This results in a closure of the popup which causes the authentication to fail. 

Could you please let me know how I could keep the popup open till the authentication finishes?  

Thank you. 

Klapaucius Klapaucius

unread,
Dec 11, 2021, 2:46:30 AM12/11/21
to Chromium Extensions
Are you using MV2 or MV3 ?

I have a plain javascript example that works and I can share (using the firebase libs), but have no idea how to make it work in MV3.

Best

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/f9652dbc-cf88-4a7c-bad6-ce42153d82e6n%40chromium.org.

Simeon Vincent

unread,
Dec 15, 2021, 7:49:00 PM12/15/21
to Klapaucius Klapaucius, Chromium Extensions
I do not think there's a way to keep the popup open. Instead, you should implement your login flow using a dedicated tab rather than the extension's pop window.

Simeon - @dotproto
Chrome Extensions DevRel


Reply all
Reply to author
Forward
0 new messages