How to store database credentials in electron app

I have an electron app that is going to be running mostly offline. When the user starts the app, I want the electron app to connect to the local database.

How do I securely store the database credentials while packaging the app?