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

So you are attempting to use a third party generator instead of building your own flow?

Thats the problem, you are partially implement oAuth and using someone elses tool to do the work.

You need to build your own webpage that implements oAuth to collect and store/use the token(s)