electron-oauth-helper icon indicating copy to clipboard operation
electron-oauth-helper copied to clipboard

OAuth1Provider and OAuth2Provider is undefined

Open devmiyax opened this issue 5 years ago • 1 comments

Hi,

I'm trying to use your electron-oauth-helper referring your example. But OAuth1Provider and OAuth2Provider is always undefined with this code.

const { 
  OAuth1Provider, 
  OAuth2Provider 
} = require("electron").remote.require("electron-oauth-helper")

Any help?

devmiyax avatar Nov 23 '19 03:11 devmiyax

I find that this works:

const OAuth2Provider = require('electron-oauth-helper/dist/oauth2').default

Nicholaiii avatar Feb 18 '20 16:02 Nicholaiii