This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For fenix#16232 - Make sure we cancel any in-progress auth
Prior to #7856 we only had a NotAuthenticated state, which user would remain in until the very end of the authentication process (receiving a 'finished...' api call). After the refactor, we introduced an in-progress states - specifically, BeginningAuthentication. If the user cancels the auth flow (e.g. closes a custom tab), they will remain in this state. Subsequent login attempts would then fail. This patch fixes this by introducing a Cancel event which we trigger whenever handling 'beginAuthentication' calls. In normal scenarios, this event is ignored. Otherwise, it "resets" the state machine into NotAuthenticated state before emitting any Begin* events.
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters