-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Improve the settings sync flows with authentication #94766
Comments
@RMacfarlane I am seeing the following dialog even if sync is turned off |
Ah, yeah, the problem is that I don't have a clear signal of when a token is no longer being used. I track that something has read a token for an account during the current session. Would changing the dialog text to the more accurate text |
The more involved fix would be to return both a value and a dispose method that can be called when using |
Is it possible to logout only for a given session? |
Yeah, that's possible. However, I'm not sure we want to do that when turning off sync - I don't think I would expect to sign out when turning off sync. Since multiple extensions can read the same session, you potentially stop something else from working by removing that session. I previously made a change to enforce that each session could only be read by one extension, but then undid it because that makes a single sign on impossible. Maybe I could reference count and only really do the logout when nothing depends on the session anymore 🤔 |
I see. Makes sense. Thanks for explanation. |
Improve the settings sync flows with authentication
Sign in flow
Signing in showing too many notifications and not consistent. Sign in from Accounts UI and I see following dialogs
a. For the first time ever
b. Afterwards
Sign out flow
Signing out is showing following notification
There should be a sign in button instead of Turn on. Because user did not turn off sync here. It shall be same as the action button that is shown in the gear icon
Above notification is also shown even when settings sync is turned off
Also do we need successfully sign out notification here?
Error flow
Errors while signing in
Following notifications are shown which are not helpful
Cross Window Flow
Sign in/Sign out from one window is prompting turn on/turn off sync notification on another window
#94176
Others
The text was updated successfully, but these errors were encountered: