Securing Electron Applications with OpenID Connect and OAuth2

Hello.

I am using an Auth0 SPA application for React with the @auth0/auth0-react SDK. I want to wrap my app in Electron but also deploy it as a web app (therefore I cannot rely on using auth0 native application).

What I have tried doing is using file:///callback for redirect_uri (added it to the list of allowed login callbacks as well), which results in an The specified redirect_uri 'file:///callback' does not have a registered origin error.

What should I do in this situation?