We are migrating from deprecated Google Sign-in (basically gapi.auth
and gapi.auth2
methods) into the new Google identity services (google.accounts.oauth2
). More info here
We are using the authorization solely for Google picker. The problem is, beforehand (it seems) the library didn't return access_token
in their gapi.auth.authorize
, which was an indication that something wrong is going on and we've displayed "3rd party cookies blocked" message.
After the migration, the Google identity does not need any cookies, whatsoever, Google picker is somewhat unaware and stops working with 3rd party cookies blocked.
After the picker is successfully loaded, he prompts the user to SignIn (even though it just received a working token via setOAuthToken
). After clicking the SignIn twice in the iframe, there is some malfunction error. Nothing is ever opened. NO callbacks are aware of this, no errors can be caught.
This behavior can be directly controled by the 3rd party cookie block. If the cookies are allowed. The exact same flow (and code) opens google drive picker (via build
and setVisible
) and everything works as expected.
The question is.
- How to catch this 3rd party cookie error? Or any errors in the iframe whatsoever.
- Why the picker requires 3rd party cookies?
- Should I do something on the picker side for the migration as well?