Good day. I am developing an extension. And I want to implement automatic creation of a user account and pass-through authorization based on his Google account, with which he entered Google Chrome.
I managed to determine if the user is logged in. Also, with the help of additional requests, I managed to determine whether he turned on the synchronization in Chrome. But I just can't find a way to automatically get information that the user is logged out of the Google Chrome account. I was hoping for the onSignInChanged event in the сhrome.identity resolution, but it is silent the moment I disable sync.
Maybe I'm doing something wrong? Maybe someone has some ideas?
Once again, I will describe the ideal solution that I am looking for: I have a listener who instantly receives notifications if: 1. the user is logged into the Google Chrome account; 2. the user is logged out of the Google Chrome account; 3. The user has changed the sync status of Google Chrome.