google / google-api-javascript-client

Google APIs Client Library for browser JavaScript, aka gapi.
Apache License 2.0
3.21k stars 1.06k forks source link

Google Sign in work on normal browser (Safari/Chrome/Firefox) but failed on in app browser (Facebook/Line) #644

Open misty7815 opened 4 years ago

misty7815 commented 4 years ago

I just create the simple vue cli project with only google sign in function it work on Chrome/Safari no matter mobile or notebook but it will failed on in app browser like facebook after sign will show {"error","popup_closed_by_user"} and Line after type account/passwd and confirm will hang on consent-flow

the simple code is like this => i have confirm the init has been finished before sign

ohlara commented 4 years ago

i have same problem.

tzabarc commented 4 years ago

Facebook app browser doesn't allow popups, so popup that SDK opens for consent can't communicate back with opener window, therefore auth data is lost

wassikhaan commented 3 years ago

Same issue here, let us know if there is any workaround for this ?

jhkcia commented 2 years ago

Same issue on electron js desktop application.

AstralHorse commented 6 months ago

Any updates or solution how we can avoid it ?