Skip to content

Bug: Twitch Plugin User Agent prevents login and throws "Your browser is not currently supported." #3073

@BedHedd

Description

@BedHedd

Reproduction steps

  1. Open Twitch in sources
  2. Click Login under Authentication Results
  3. Provide login details to twitch login page
  4. Twitch returns Your browser is not currently supported.
  5. Image

Actual result

Twitch returns Your browser is not currently supported.

I was able to replicate the issue when i tried the same user agent string in librewolf desktop with a user agent spoofer
Image

The default user agent is triggering twitch from allowing login

Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.6422.113 Mobile Safari/537.36
{
  "name": "Twitch (Beta)",
  "description": "One of the biggest livestreaming platforms, owned by Amazon.",
  "author": "FUTO",
  "authorUrl": "https://futo.org",
  "platformUrl": "https://twitch.tv",
  "sourceUrl": "https://plugins.grayjay.app/Twitch/TwitchConfig.json",
  "repositoryUrl": "https://gitlab.futo.org/videostreaming/plugins/twitch",
  "scriptUrl": "./TwitchScript.js",
  "version": 30,
  "iconUrl": "./twitch.png",
  "id": "c0f315f9-0992-4508-a061-f2738724c331",
  "scriptSignature": "dMnSUCvuqlACdcjxNPwiDKaeVVEQj5zw78eMDJvYpAA8EUUBXjNCmXwvRimrLrvkXbYRBg5H8TJwJ8lnIlsx+1J88+Lw52+mMS5QG+sL901AAvHsxsrRyRfGWOUIyrTVljJo2VWcN3kzo408h69AxW0KM7rgE0XeeDrHpOzIyN/gK1PQimezNv6S50b5Ce0RbN4MA+VKijp9/enpNsGYTiIDjEXiyHWqK8X5ElKRRWFcRKRvTLS+M1McuHUhSEVUjEpdCrKSAZ+T4G731eLirg6EG8XfuJQY/yO5ahqzifeN7m+V5U4BkdnSPzaA/e4OzmGgnV7kfbwlJPamBOMvLQ==",
  "scriptPublicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsoFJU4AReDyUnSQI9A99UjLCwkY8OH+1o8cdtf2EjSb+fO2qmP8MGMTAvfvgmq5d2QBJE2XHRkRO3JKcTlcc1j0WlOlU8P9W272DYCeX6oYaavpKNqGKoGEuodp9wtiyNwyH46++JfpU/uIUacZbZKkHv9gIGchmNvpKYZQjFd/8pUqXGpcXZP54tGSC9PLcY+5TozZThK7Oy1+3YEf1bZ44UinRYYATbLk/wNuAfsupvlt6nxZOcJhABhdo9V+gY0FE6Ayg5+1cd1noWhnRtLF+sPdEr3z8Nt15JEK5a/524t25FMhwz8yKxlGW5qW3QLJHSUgLQncL6a1zlZ1s8QIDAQAB",
  "packages": [
    "Http"
  ],
  "allowEval": false,
  "allowUrls": [
    "gql.twitch.tv",
    "twitch.tv",
    "usher.ttvnw.net",
    "production.assets.clips.twitchcdn.net"
  ],
  "authentication": {
    "userAgent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.6422.113 Mobile Safari/537.36",
    "loginUrl": "https://www.twitch.tv/login",
    "headersToFind": [
      "Authorization"
    ],
    "domainHeadersToFind": {
      ".twitch.tv": [
        "authorization"
      ]
    }
  },
  "supportedClaimTypes": [
    14
  ],
  "settings": [
    {
      "variable": "shouldIncludeChannelClips",
      "name": "Show channel clips",
      "description": "",
      "type": "Boolean",
      "default": "true"
    }
  ],
  "changelog": {
    "30": [
      "Fix: Playing VODs;"
    ],
    "29": [
      "Fix: Home tab;",
      "Fix: Search;",
      "Fix: Content Details;",
      "Fix: Playing saved videos;",
      "Fix: Content recommendations;"
    ],
    "28": [
      "Improvement: Add 1440p stream support for logged-in users in supported regions;"
    ],
    "27": [
      "Fix: Channel social links;",
      "Improvement: Initial content recommendation implementation;",
      "Improvement: Switch to CBR bitrate to resolve automatic resolution drops"
    ],
    "26": [
      "Fix: home error;"
    ],
    "25": [
      "Fix: solve playback errors in some clips;"
    ]
  }
}

Expected result

Twitch will login if I use this user agent

Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0
Image

or if I use the latest android user agent

Mozilla/5.0 (Linux; Android 16) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.7559.133 Mobile Safari/537.36
Image

Grayjay Version

370

What plugins are you seeing the problem on?

Twitch

Plugin Version

30

Which android version are you using?

14

Which device are you using?

Xperia 5 III

Which operating system are you using?

LineageOS

When do you experience the issue?

  • While logged in
  • While logged out
  • N/A

Are you using a VPN?

No

References

#2702

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions