chrome.identity.launchWebAuthFlow
method always throw error Authorization page could not be loaded.
When requesting with:
"&redirect_uri=http://localhost:8080"
the Google's auth popup appears but after you sign in: error appears.
"&redirect_uri=" + chrome.identity.getRedirectURL() error throws immediately
I need to login Google from Opera extension so getAuthToken will not work for me.
I have found soluntion. You should create "Web app" with
redirect uri=https://<appid>.chromiumapp.org/when creating oauth2 client in google dev console instead of "chrome app".