brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.67k stars 2.31k forks source link

Issues in Twitch login #25598

Open djprmf opened 2 years ago

djprmf commented 2 years ago

Description

Cannot login in Twitch - https://www.twitch.tv/

Steps to Reproduce

  1. Go to Twitch - https://www.twitch.tv/
  2. Try to login

Actual result:

The login doesn't work, showing a error message

Expected result:

Login to the account

Reproduces how often:

Easily reproduced - every try

Brave version (brave://version info)

Version: 1.43.93 Chromium: 105.0.5195.127 (Compilação oficial) (64 bits) Revision 912488396852bf658ab32465980c0b93a3c27a83-refs/branch-heads/5195@{#1109} SO: Windows 11 Version 22H2 (Build 22622.601)

Version/Channel Information:

Happens in every channel except nightly.

Other Additional Information:

Miscellaneous Information:

Info in Brave Community about the issue: https://community.brave.com/t/problems-with-twitch-on-brave/433996/4

in the Brave Console, when trying to login, shows this error message: "POST https://passport.twitch.tv/integrity 400 (Bad Request)"

ZerGo0 commented 2 years ago

This has fixed it for me:

  1. Enable the Brave Shield
  2. Clear your Twitch Cookies
  3. Reload the page

The login should work after that, no idea why, but something seems to break it for some reason.

Changing the Shield Setting only seems to break after a browser restart.

@djprmf Update the title to Brave Shield Setting breaks Twitch Login or something like that. Hopefully that will get more attention.

djprmf commented 2 years ago

@ZerGo0 As i state in the message, i don't use Brave Shields at all, they are to allow everything as default, so is not related with that.

ZerGo0 commented 2 years ago

@ZerGo0 As i state in the message, i don't use Brave Shields at all, they are to allow everything as default, so is not related with that.

Do you have it disabled? If so then that's the problem that I've described.

djprmf commented 2 years ago

Do you have it disabled? If so then that's the problem that I've described.

I have the Brave Shields enable, but not blocking anything. But in any case, tested with both disable and enable and doesn't work. Also not working in Beta with Shields setting as default - enable or disable.

Xzensi commented 2 years ago

I'll just chime in to say that I seem to have got the exact same issue and enabling Brave Shields and clearing cookies worked for me as well.

Just clearing cookies and cache, having Brave Shields disabled and no extensions installed was not enough but enabling Brave Shields suddenly solved it?

Update: What's interesting is that after enabling Brave Shield and clearing cookies and disabling Brave Shield again I could get through the login but got stuck at the 2FA modal with similar "https://passport.twitch.tv/protected_login 400 (Bad Request)". Enabling Brave Shields again but leaving it enabled this time and clearing cookies I could only now finally get through login and 2FA.

After logging in successfully, I disabled Brave Shields and cleared cookies and am now again unable to get past login modal. I can see the same initial bad request error.

uraimo commented 2 years ago

The logout/on/off/clear trick didn't work for me, with any permutation. I initially logged out only because I was seeing multiple errors in the UI (notifications non being cleared, chat points errors, etc...), so that 400 we are receiving could not be the only issue.

The body of the 400 request to https://passport.twitch.tv/integrity doesn't have any obvious indication about what failed:

{"error":"Oops! We encountered an unexpected error. Please try again.","errors":["Oops! We encountered an unexpected error. Please try again."],"error_code":5025,"error_description":"integrity failed"}

secv commented 2 years ago

Same issue. Messing with Shield and cookies didn't work.

ghost commented 2 years ago

i was having the same issues and thought disabling any extensions and opening twitch in private mode would work, it didn't, so I switched to firefox and it worked, I think it has to do with sending a code to your email

secv commented 2 years ago

Some additional information: subscribing to a channel with Twitch Prime also failed consistently on Brave but worked first try on Edge.

djprmf commented 2 years ago

Apparently, Twitch knows that there are issues with Brave and is leading users to "use a new browser". Apparently is blocking Brave as a browser.

tugatech-2022-09-28-5579000c-751f-4329-8e67-50b16a9ab9f4 1

Translate: "Yes we are aware of the lack of compatibility of our site with Brave. We know it's frustrating to change your habits, but please use one of these browsers.🙏"

secv commented 2 years ago

Possible, but I wouldn't say "apparently" blocked. Twitch Support on Twitter probably giving the only solution until Brave makes the fix. The only people who would know if its blocked would be Twitch staff and Brave staff/contributors. No reason to jump the gun.

djprmf commented 2 years ago

@secv users in the opera and opera GX also have this issue. Is not related only with brave.

jeebuscrisis commented 2 years ago

Just to add a possible solution that I don't fully understand why, but I went into brave://flags and enabled brave-dark-mode-block

cleared cache/cookies, restarted brave and was able to use twitch normally.

image

Ben0xA commented 2 years ago

Just to add a possible solution that I don't fully understand why, but I went into brave://flags and enabled brave-dark-mode-block

cleared cache/cookies, restarted brave and was able to use twitch normally.

image

This worked perfectly. Twitch is using the dark mode to fingerprint brave to block the login!

Chris92de commented 2 years ago

Just to add a possible solution that I don't fully understand why, but I went into brave://flags and enabled brave-dark-mode-block

cleared cache/cookies, restarted brave and was able to use twitch normally.

image

This sadly doesn't work for me in any permutation. Could you share a screenshot of your exact settings? I have that flag enabled and I can see that the front page completely changes with aggressively blocking fingerprinting but logging in still doesn't work.

Neither on Stable Version 1.44.101 Chromium: 106.0.5249.65 (Official Build) (64-bit) nor on Beta Version 1.45.78 Chromium: 106.0.5249.65 (Official Build) beta (64-bit)

jeebuscrisis commented 2 years ago

image

I've seen everything from making sure shields are enabled before clearing cache and that even having to do it once more somehow also allowed this to work.. but these are the only two things I have enabled in the "hidden settings" Also I have only standard block fingerprinting, not aggressive.

secv commented 2 years ago

First of all, thank you for letting me know about the Dark Mode settings. I didn't even know those existed! Second of all, I can now sign in to Twitch after doing the following:

One or more of those steps may be unnecessary, but that's the whole series of actions for full review.

Chris92de commented 2 years ago

First of all, thank you for letting me know about the Dark Mode settings. I didn't even know those existed! Second of all, I can now sign in to Twitch after doing the following:

  • Enable dark mode blocking fingerprinting protection: Enabled
  • Auto Dark Mode for Web Contents: Enabled
  • Twitch Shield Setting: Block Fingerprinting
  • Clear Cache
  • Remove Cookies via searching "Twitch" and selecting Remove All
  • Restart Browser
  • Login With 2FA

One or more of those steps may be unnecessary, but that's the whole series of actions for full review.

This sadly still doesn't work for me. Really not sure what I'm doing wrong.

jeebuscrisis commented 2 years ago

This sadly still doesn't work for me. Really not sure what I'm doing wrong.

Out of sheer curiosity have you restored your brave to default settings just in case you have anything else you've modified and then trying this? I would even consider re-installing brave and then this process?

Chris92de commented 2 years ago

This sadly still doesn't work for me. Really not sure what I'm doing wrong.

Out of sheer curiosity have you restored your brave to default settings just in case you have anything else you've modified and then trying this? I would even consider re-installing brave and then this process?

I tried with a fresh install of Brave Beta, so unless some of the settings carried over via Brave Sync, I don't think any of my settings affect it.

jeebuscrisis commented 2 years ago

Why Beta? Try a stable install

Chris92de commented 2 years ago

I tried both.

jeebuscrisis @.***> schrieb am Fr., 30. Sept. 2022, 01:34:

Why Beta? Try a stable install

— Reply to this email directly, view it on GitHub https://github.com/brave/brave-browser/issues/25598#issuecomment-1262936621, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKENNPORUPTA65XK3WKFOLWAYRQTANCNFSM6AAAAAAQUU3D74 . You are receiving this because you commented.Message ID: @.***>

secv commented 2 years ago

This sadly still doesn't work for me. Really not sure what I'm doing wrong.

Was the Twitch website open in your browser during any steps besides updating Shield settings?

Chris92de commented 2 years ago

No.

secv @.***> schrieb am Fr., 30. Sept. 2022, 03:40:

This sadly still doesn't work for me. Really not sure what I'm doing wrong.

Was the Twitch website open in your browser during any steps besides updating Shield settings?

— Reply to this email directly, view it on GitHub https://github.com/brave/brave-browser/issues/25598#issuecomment-1263006524, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKENNMEVZCUY7XZUQECKX3WAZAJLANCNFSM6AAAAAAQUU3D74 . You are receiving this because you commented.Message ID: @.***>

Chris92de commented 2 years ago

I've since tried with the stable Brave Browser, also no dice. Same settings as displayed above.

SydenX commented 2 years ago

I've the same problem only on brave btw. Tried to do what you said but doesn't work.

First of all, thank you for letting me know about the Dark Mode settings. I didn't even know those existed! Second of all, I can now sign in to Twitch after doing the following:

  • Enable dark mode blocking fingerprinting protection: Enabled
  • Auto Dark Mode for Web Contents: Enabled
  • Twitch Shield Setting: Block Fingerprinting
  • Clear Cache
  • Remove Cookies via searching "Twitch" and selecting Remove All
  • Restart Browser
  • Login With 2FA

One or more of those steps may be unnecessary, but that's the whole series of actions for full review.

enumag commented 2 years ago

Messing around with shields, cookies, local storage, cache clearing and brave flags about dark mode didn't work for me. Brave Nightly does work though. I wonder what's different.

Any new tips?

jeebuscrisis commented 2 years ago

I also ran into twitch blocking me again. Just wanted to report another way I found that allowed me access with no issues... In brave, go to settings/privacy and security/cookies and other site data/See all cookies and site data.

In the top right where it says Search cookies type twitch .. delete every entry with twitch in the name. Not sure if you'll have to do this everytime but once I did it I was using twitch normally again.

Also make sure you do not have aggressive finger printing on.

And in case you don't have it set, type brave://flags in your address bar... search flags for #brave-dark-mode-block and enable it

enumag commented 2 years ago

@jeebuscrisis Tried it, still can't login. 😅

enumag commented 2 years ago

Hmm after a few tries it did go through actually... I'm not sure if it's related but it refused to work while I had the dev console active.

Thanks @jeebuscrisis!

jeebuscrisis commented 2 years ago

Hmm after a few tries it did go through actually... I'm not sure if it's related but it refused to work while I had the dev console active.

This is good to know if other people are having issues and have the dev console up!

Syzuna commented 2 years ago

Nightly used to work for me until today... This is really starting to piss me off... not on Brave but Twitch bcs of their apparently stupid new Kasada security for anti bot stuff...

jeebuscrisis commented 2 years ago

maybe don't try to run bot stuff??

This was all because of a flaw in Brave that allowed bad actors to automate/script bots.. so maybe if ya'll could knock it off that'd be super awesome

Syzuna commented 2 years ago

You do realize that most likely nobody here did that right? I for sure didnt... With your argument we should ban VPNs bcs bad actors abuse them or even better ban credit cards bcs they have flaws that bad actors abuse... So maybe knock it off yourself.

jeebuscrisis commented 2 years ago

Fair enough. That put to bed, it's interesting to me how this works for some but not all people. So therefore there must be disparity between our setups IN SOME WAY that is preventing one twitch user from another whilst using the brave browser and why these methods work but not keeping uniform. I often think that those on the more developer side are more customized systems vs. casual user so maybe these methods are more geared toward the casual user.

2 cents.

Chris92de commented 2 years ago

I managed to login now after completely resetting Brave's settings to default. No clue which setting it was that caused it. I also realized that I made a mistake in my earlier testing with Brave Beta because I put it in my Brave Sync chain before I tried logging in.

jeebuscrisis @.***> schrieb am Mi., 5. Okt. 2022, 05:27:

Fair enough. That put to bed, it's interesting to me how this works for some but not all people. So therefore there must be disparity between our setups IN SOME WAY that is preventing one twitch user from another whilst using the brave browser and why these methods work but not keeping uniform. I often think that those on the more developer side are more customized systems vs. casual user so maybe these methods are more geared toward the casual user.

2 cents.

— Reply to this email directly, view it on GitHub https://github.com/brave/brave-browser/issues/25598#issuecomment-1267879465, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKENNNG4VJ4HZJF2PY6BITWBTYQHANCNFSM6AAAAAAQUU3D74 . You are receiving this because you commented.Message ID: @.***>

Syzuna commented 2 years ago

I mean I have a dev background sure but I just maintain a library for the Twitch Third party ecosystem. No bot Scripts... my shield settings are kinda basic. Standard footprint and ads/tracking blocking, Cross origin cookies blocked. Auto Upgrade to https. I dont really feel like resetting my whole profile and loosing all bookmarks and so on.

Syzuna commented 2 years ago

Ok funny enough... I reset the nighly instance I use (still have all my stuff on the stable version) and it started working again... settings are the same tho :D so I really dont know whats going on

dgirgenti commented 2 years ago

+1 for turning on shield and clearing cookies -- I can finally log in!

tance77 commented 2 years ago

Resting the profile setting seems to be working over in the community thread.

When it worked in the guest mode and disabling the extensions didnt work, i decided to Reset Settings on my main profile, and after i activated all the extensions. Its working normally now.

uraimo commented 2 years ago

Yes, finally, doing a settings reset works (and preserves everything you'd want to keep, i.e. bookmarks and passwords included), no need to clear the cookies/history.

ljford7 commented 2 years ago

Just to chime in - I can login with Guest Mode window, but not the main browser. It appears to be blocking the 2-FA popup. I have no interest in resetting my settings to login to Twitch.

ron-wolf commented 1 year ago

I've the same problem only on brave btw. Tried to do what you said but doesn't work.

First of all, thank you for letting me know about the Dark Mode settings. I didn't even know those existed! Second of all, I can now sign in to Twitch after doing the following:

  • Enable dark mode blocking fingerprinting protection: Enabled
  • Auto Dark Mode for Web Contents: Enabled
  • Twitch Shield Setting: Block Fingerprinting
  • Clear Cache
  • Remove Cookies via searching "Twitch" and selecting Remove All
  • Restart Browser
  • Login With 2FA

One or more of those steps may be unnecessary, but that's the whole series of actions for full review.

This worked for me! I removed cookies after restarting the browser, however (by mistake). It worked regardless.

ljford7 commented 1 year ago

Has there been any movement on this? I am on v1.45.131 and still can't login (have to use Edge unfortunately for Twitch).

(I have tried all of the fixes except resetting my settings, but they don't work - I have no interest in resetting my settings.)

secv commented 1 year ago

I didn't have to reset any settings other than deleting the cache and Twitch cookies via search.

djprmf commented 1 year ago

In the latest versions of brave i don't have any more issue. I think this have been solved. If there is any other issue, probably is not related with this one.

2ndhandxml commented 1 year ago

It's so inconsistent. I clear cookies, history, local and session storage, in various configuration... No changes. I set up a new profile, couldn't login. I even turned off 2FA, still nothing. I'm on v1.45.131 so looks like updates also don't work for me. I ain't got no idea what can test more. Edit1: Changes to Shield didn't work as well.

ljford7 commented 1 year ago

Just tried it again (deleting cookies, no shields, etc.) and doesn't work. Also tried in private mode and same result. I don't know if there is a link, but I use 2FA with Authy. Screenshot 2022-11-24 111844

ljford7 commented 1 year ago

I was finally able to login today!

Brave version 1.46.140 - maybe it is fixed for good?

2ndhandxml commented 1 year ago

Affirmative. v1.46.140 - can login again.