Run PubSub example locally

This is the URL used to be redirected to Twitch

https://id.twitch.tv/oauth2/authorize?response_type=token&client_id=2ltzo7xctab0g729501v91hq3qmbby&redirect_uri=http://localhost:8080/&state=936xkqys020XoWd&scope=user_read+chat%3Aedit

Then I got this message from the redirect

image

After clicking continue I get the error. But it’s actually displayed on the URL itself:

https://localhost/?error=redirect_mismatch&error_description=Parameter+redirect_uri+does+not+match+registered+URI&state=936xkqys020XoWd