CSP errors in Electron app

Ready to post? :mag: First, try searching for your answer.
Hello!

Basically, I have an Electron app, which has a window that loads a login page for my app. In order to increase security, I’ve set some CSP to the app, including the windows that load the login page from Auth0.

I’ve noticed that every now and then the hash for the scripts in these pages (Auth0 login) change and I have to change my CSP to allow the new hashes.

I would like to know if that’s the only possible approach to that problem, or if I’m missing something that might help me with this.

Thank you very much!