I have been working on a new electron app with react that uses the Spotify API. I am using oAuth to authenticate with Spotify and a return an access token, this why fine in a local dev env as the app if running on the webpack dev server and can provide a callback url.
However the when the electron app is packaged up and installed it is no longer using the dev server and the JS bundles are packaged up with the app.
At this stage how am I supposed to hit the oauth server and return a valid callback url to get the token?