CodetrixStudio/CapacitorGoogleAuth

popup_closed_by_user issue on Chrome or Safari

edshkliaruk opened this issue · 3 comments

I cannot authorise due to this issue:
Screenshot 2023-11-20 at 14 17 47

I see pop-up with list of account but in the background I see this issue and the next steps do not work.

Someone faced with this issue?

Facing the same issue

I solved this issue adding Cross-Origin-Opener-Policy with same-origin-allow-popups value.

Exactly! Adding the Cross-Origin-Opener-Policy with the value same-origin-allow-popups is a great solution for this issue. Even Chrome suggests this problem can occur if this policy is not properly configured, as it blocks the window.closed calls. Setting this header ensures the necessary functionality, allowing popup windows to operate smoothly and preventing unwanted blocking of interactions between different windows. Thanks for sharing this solution!