-
Notifications
You must be signed in to change notification settings - Fork 1
AuthSession
Jiří Čermák edited this page Dec 6, 2022
·
9 revisions
SessionState
reflects current auth session state.
- It's initially set to
null
. - Only
AUTH_SESSION_*
actions changes its value.
Possible states:
-
null
- set initially -
ACTIVE
- set by
AUTH_SESSION_START
(login is complete - access is avail. and auth. user is fetched) andAUTH_SESSION_RESUME
(access token refreshment has been completed) actions - Access token is only valid in this state.
- set by
-
PAUSED
- set byAUTH_SESSION_PAUSE
(access token refreshment has started) -
INACTIVE
- set byAUTH_SESSION_END
action (user logouts, token refreshment fails)
• ACTIVE
• INACTIVE
• PAUSED