IRC-Client Login unsuccessful

Hi,
i’m trying to connect to the twitch irc, but i always get “Login unsuccessful”.

If i use a wrong token, i get “Login authentication failed”, but with the right token i get “Login unsuccessful”.
I’m using HexChat as test irc client.

Any idears what i’m doing wrong? thx for helping.

Thats the wrong scopes for over IRC

Authenticating with the Twitch IRC server

Before you can continue, you must authenticate with Twitch and get a User Access Token with chat:read (to read chat messages over IRC) and chat:write (to send chat messages over IRC) scopes. You will need this token to continue, and also the username of the account you generated the token for.
For more information on this, see Authenticating.

Thanks BarrayCarlyon for the fast answer.

After I call "twitch token --user-token --scopes “chat:read chat:write” I get this answer:
"{“status”:400,“message”:“invalid scope requested: ‘chat:write’”}

thx for helping.

You have found a documentation bug

twitch token --user-token --scopes "chat:read chat:edit"

is the correct command/scope

filed as: Authenticating with the Twitch IRC server: `chat:write` · Issue #1063 · twitchdev/issues · GitHub

1 Like

Thanks, I just also found it on another page Twitch Access Token Scopes | Twitch Developers .

I can now login via IRC.

Big thx for helping me so fast BarryCarlyon :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.