forked from parky128/session-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added hooks to ALSession to allow external session checkers to signal when they start and end. Updated AlSessionDetector to use the startDetection() and endDetection() methods in ALSession. Added a new public method `ALSession.ready()` that is only resolved when 1. At least one session detection cycle has completed execution 2. No session detection cycles are currently in flight 3. The user is either unauthenticated OR the acting account has been resolved Unlike `ALSession.resolved()`, which only resolves in authenticated contexts, `ALSession.ready()` will resolve for unauthenticated users, and indicates the stability of the session state.
- Loading branch information
Showing
4 changed files
with
79 additions
and
3 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