Three solutions:
- Run oAuth via a server and the server redirects to your custom URI as needed
- With Electron you can monitor the URL’s a popup is loading intercept and shutdown the popup window
- Use an accounts system, so people link Twitch/their account somewhere else and your app uses your account system to login and fetch the Twitch link data