Closed jwir3 closed 8 years ago
With the following code:
const result = googleOauth.getAccessToken( ['https://www.google.com/m8/feeds'], ArbitratorConfig.google_client_id, ArbitratorConfig.google_client_secret ).then(token => { console.log(JSON.stringify(token, null, 2)); // app.removeListener('will-quit', preventQuit); // app.quit();
I am getting the following exception:
index.js:27 Uncaught (in promise) TypeError: BrowserWindow is not a constructor(…)
My current version of electron-google-oauth is 2.0.0.
Are you running the code in the main or renderer process?
Ah, right. Yep, that was the problem. I was trying to run that code from the renderer process. Thanks.
With the following code:
I am getting the following exception:
My current version of electron-google-oauth is 2.0.0.