-
Notifications
You must be signed in to change notification settings - Fork 1
FlowType
Jiří Čermák edited this page Dec 6, 2022
·
10 revisions
FlowType
gives you current high-level auth. state.
-
FlowType.INDETERMINATE
- Flow type hasn't been determined yet. Tokens retrieval is in process. -
FlowType.ANONYMOUS
- Tokens retrieval was completed, but no tokens has been found.
- Or auth session ended -
AUTH_SESSION_END
action was dispatched.
-
FlowType.AUTHENTICATED
-AUTH_SESSION_START
action was dispatched, so valid tokens are available, authorized user successfully fetched.
Such a variable is useful for deciding between auth. and non-auth. endpoints.
• ANONYMOUS
Access token isn't avail. or valid, or auth. user isn't avail.
• AUTHENTICATED
Access token is avail. and valid, and auth. user is avail.
• INDETERMINATE
Auth user and access token might be available – flowType
hasn't been resolved yet.