"Invalid OAuth token" when making a request

When I use “twitch token -u” my browser opens up in https://localhost and then nothing more happens

And I dont really understand the instructions at Getting Tokens: OAuth | Twitch Developers , Am I supposed to make a GET request in the terminal like this:

GET 'https://id.twitch.tv/oauth2/authorize?response_type=token&client_id=<clientid>&redirect_uri=http://localhost&scope=user_read_follows

That doesn’t work for me, I get the output LWP will support https URLs if the LWP::Protocol::https module is installed.