C# API Login with Twitch (getting back the token)

The default is localhost, not twitchapps?!

You need a webserver at localhost to capture the event.

A nodeJS/javascript example of a user oAuth flow is at