I'm trying to follow the authorization grand flow to get a user token (and refresh token) that will last longer than 2 hours.
For development I use c# and if I have a valid user token all of my requests work fine.
Following https://developer.ebay.com/api-docs/static/oauth-consent-request.html I execute the consent request and get HTML as an response.
Then I display the response in the built in webbrowser but the capture won't load and I get a script error.
My code is here (for storing and managing credentials I use the eBay OAuth C# Client Library):
Can someone tell me what I do wrong?
And is there a way to get a user/refresh token that is valid for longer without having a user to login or click on something?