Since Google blocks oauth requests made via embedded browsers, I would like to login to a Google account via the system browser and send the received access token to a running electron application. I tried the following:
- Opened the Google authorization URL in my system browser via shell.openExternal().
- Successfully logged in to a Google account and got an access token provided in the redirect_url.
The redirect_url is actually my localhost. So I cannot redirect the access token to the electron application.
How can I send the access token to a running electron app?