I'm trying to make an electron app that has a discord authorization. The prompt for the auth is from the user's default browser so user can easily just press authorize rather than logging in from the electron app. I use express so discord can redirect the authorization to the localhost.
Problem is that I need to send the information from the localhost to the react app by using ipcRenderer which uses require('electron') but since it's the renderer process you cant use it.
How would I go about this problem?