Having been around the houses, I think that the issue may be to do with Angular. The above lines are in controller.js so I’m wondering if the Angular module has added some properties to the electron object, and that my code fails because I am not adding angular
to my project.
If that is correct, my question becomes: how can I do the auth without adding in the Angular stuff? (because I’m building a CLI app which won’t display a browser window.
I could just include the angular
module, but obviously I’d like to avoid that.
Ahh, ok electron.remote etc are not set-up by angular, but allow the rendered to communicate with the main process. Now looking into how to do auth in the main process…