openid / AppAuth-JS

JavaScript client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Apache License 2.0
975 stars 162 forks source link

nodeIntegration false by default in 2021 #194

Open rdylina opened 3 years ago

rdylina commented 3 years ago

Expected Behavior

[REQUIRED] Describe expected behavior

NodeJS native require() should work in root of index.html

Describe the problem

[REQUIRED] Actual Behavior

require() not a defined function

[REQUIRED] Steps to reproduce the behavior

npm run start, open dev inspection, view console

[REQUIRED] Environment

Fix is applied to index.ts by making the following change starting on line 27 w = new BrowserWindow( { width: 1280, height: 720, icon: 'assets/app_icon.png', webPreferences: { nodeIntegration: true, contextIsolation: false, } });

msm-fc commented 3 years ago

Unsubscribe -- Matthew Musante @.*** 520-305-9889