Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web app auto logs out while using when switching tabs #702

Open
AshleyYakeley opened this issue May 17, 2023 · 6 comments
Open

Web app auto logs out while using when switching tabs #702

AshleyYakeley opened this issue May 17, 2023 · 6 comments
Labels
bug Something isn't working x:planned We're on it!

Comments

@AshleyYakeley
Copy link

AshleyYakeley commented May 17, 2023

To Reproduce:

  1. Open up a second browser tab with Bluesky
  2. Keep using Bluesky in one tab
  3. After some period of time (six hours? 24 hours?), switch to the other tab

Result: unexpectedly auto logged out in both tabs

Expected: to keep using the app

Platform: https://staging.bsky.app/ on Firefox on Linux

Note this happens quite often to me as I often leave multiple Bluesky tabs open. As soon as I switch to an old one, I get logged out in all of them.

@AshleyYakeley AshleyYakeley added the bug Something isn't working label May 17, 2023
@pfrazee pfrazee added the x:planned We're on it! label May 17, 2023
@pfrazee
Copy link
Collaborator

pfrazee commented May 17, 2023

Yeah to solve this we need to use broadcastchannels and/or localstorage to coordinate session tokens between the tabs

@AshleyYakeley
Copy link
Author

Could you just not automatically log out? Twitter, Facebook, Tumblr, Instagram, Reddit, etc., do not automatically log out.

@psavan1655
Copy link

For that we need to implement different in-browser storage. As opposed to current storage, which gets cleared out on exiting from a tab. I will be happy to work on this issue.

@mschwendener
Copy link

mschwendener commented Aug 19, 2023

unexpectedly auto logged out in both tabs

Not only that: when I log in again in one browser tab, and reload the other tab, that's not enough – I'm still logged out in the other tab (Chrome on Mac).

Edit to be more precise: I opened many tabs yesterday with accounts I wanted to look at (and maybe follow) today, coming from a thread I liked.

The log out happened like described.

I logged in again in one tab – now, when I open any of the tabs from yesterday, I see the page for a short moment (browser cache), and then I get logged out.

@Zero3K
Copy link

Zero3K commented Aug 25, 2023

Any news regarding this bug? I am now experiencing it after the upgrade to 1.47.

@alialkhatib
Copy link

sorry to bump this, but for what it's worth, this seems to be happening to me a lot more now that I've enabled 2FA.

It wouldn't be that big a deal, except that the current 2FA implementation appears to only work via email, so I have to switch focus to my email client to grab the 2FA code, and I've found that in iPadOS if I switch focus to my email client and then back to Safari, the page loses its state, and I have to log back in (initiating the email verification process again from the beginning).

The only way I've been able to log in is by making sure the browser tab is on the screen while I pull up a side-by-side view of my email client (or pull up the email on another device). This seems to happen quite frequently with 2FA on - although maybe it's just more noticeable because of these steps to log back in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working x:planned We're on it!
Projects
None yet
Development

No branches or pull requests

6 participants