Brave confused about account when logging in to Gmail

Brave seems to forget the logins on some usual sites, now, with some strange behaviour.

@Mattches Did you see my answer? Do you need more information?

Honestly I’m going to have to ask around and see if anyone on the team has a better idea of what’s happening here.

This bit in particular doesn’t make any sense to me. The last sentence above implies that no matter what device/machine you’re using, fresh install or not, any OS, with or without any prior browsing data, any location – essentially “no matter what” – you’re encountering this login issue as long as you’re using Brave.

However, if it was a bug in Brave specifically, then we would likely be up to our necks in these reports coming in, given how many people us Gmail/Google services. And while there certainly are some login issues being reported we aren’t actually seeing any uptick in similar issues and none matching yours exactly as far as I can see. Your issue also appears inconsistent – getting “fixed”, then reappearing, then disappearing for a while, then back again – you even stated earlier that it doesn’t happen “every time” you try to login to your account(s).

I am again inclined to think this might be based on your account(s) rather than the browser (even though that doesn’t fully make sense either). The closest open issue I can see is this one (previously linked in the thread):

While I try to grab someone from the team to take a closer look at your issue, earlier you stated that you’re not using Beta or Nightly:

It’s worth testing to see if Beta build exhibits the same issues. Whether it does or doesn’t, either result may actually be helpful in finding the cause of the issue if it is Brave itself.

One possible explanation as to why it’s not more frequent might be my using several accounts, even though the bug occurs on the first login, too.

The problem that reappeared was another one related to the login procedure (see here). It appeared before an issue that logged users out of websites, reappeared after the issue was fixed, then became the one I’m describing here.

This problem hasn’t stopped so far; sometimes it’s less frequent, but even then, there’s never a week when I don’t see it.

I observed the two other bugs mentioned above on Linux, too. It does make sense to me, in that it might not be linked to my installation but to something that goes wrong due to an external cause (as in those other bugs).

Yes, I’ll do that. Thanks!

1 Like

I first reset the settings and deleted the browser’s data.

It’s a little tedious with Gmail because you have the 2-step verification the first time and the security alert emails, but I could reproduce the problem of the first post after retrying only 2-3 times, with only one account (so much for the theory of multiple accounts, but it just makes it more probable to encounter the problem each time).

It shouldn’t be too hard to reproduce:

  • install the beta (or the current version)
  • reset the settings
  • delete the browsing data (requires careful examination of the different tabs and categories; there’s not a simple “total wipe out” of data)
  • open gmail.com
  • type your gmail address
  • type your password

=> you should get the 2-step verification page

  • do the 2-step verification (I did it with the SMS code)
  • logout
  • close the browser
  • launch the browser again
  • open gmail.com

=> normally, you should see “choose an account” this time, with your previous identity

  • click on the account
  • if it shows the password form,
    • go back to “choose an account” and Shift+F5 (I think it works without refreshing, too)
    • try again
  • until you get what’s in the screenshot below—it should be pretty quick: below 10 attempts, usually below 5
  • At this point, if you go back and refresh, you have a chance of getting the normal behaviour again.

I also tried after disabling the shields, but since I saw no way to disable them for all websites, I’m not sure it means anything.

The beta version:

Brave 1.88.117 (Official Build) beta (64-bit)

Chromium: 145.0.7632.120

If it requires you to refresh/go back in this way multiple times then the issue is likely due to Google’s security thinking that an attacker or a bot is attempting to access that account. My assumption is that this would happen to you pretty much any time you open the browser and login to gmail. But to me it seems like the issue here is actually more likely related to “repeated attempts” rather than a bug in the browser.

Let me see if I can try and reproduce the issue using your steps exactly on my VM.

Also

You can refer to our documentation here, but you can adjust Global Shields settings in Settings --> Shields.

I thought about that, but the fact a refresh reverts to normal seems to contradict the idea.

I’ve also tried to replicate it with Firefox, but I was unable to get that “forgot email?” screen, even after tens of attempts (more than 20).

The difference with my first post is that the email form isn’t pre-filled with the email address, so perhaps it’s not exactly the same problem. But then again, the symptoms vary, but they all seem to suggest the browser “forgets” the identity at some point in the procedure.

I did look, but it seems like there’s way to disable it globally. Anyway, it was disabled for gmail.com so hopefully that should be fine.

Yes it should be fine for the site in general but for the record global Shields settings are set in Settings --> Shields:

Yes, I said I did look. I suppose it means there’s no global switch for all the shields.

To toggle everything off at once no, there’s no global “single” switch for that.

That’s new:

After entering the password. Might be a one-time glitch, though I’m seeing some variations around signing in on websites.