DEV Community

Discussion on: A Step-by-Step Guide to Integrating Better-SQLite3 with Electron JS App Using Create-React-App

Collapse
 
jaakko_902acb7407f1342a19 profile image
Jaakko

In Electron, security is essential, so we use the contextBridge in Preload.js to expose our PersonManager functions to the renderer process securely. This prevents any unauthorized access and keeps our data safe.

So isn't it bad practice to put the DBManager to public, exposing it to the renderer. I thought the purpose of bridge was to make it more secure and use IPC?