FlowType - AckeeCZ/petrus GitHub Wiki
Enumeration: FlowType
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.
Table of contents
Enumeration Members
Enumeration Members
ANONYMOUS
• ANONYMOUS
Access token isn't avail. or valid, or auth. user isn't avail.
Defined in
AUTHENTICATED
• AUTHENTICATED
Access token is avail. and valid, and auth. user is avail.
Defined in
INDETERMINATE
• INDETERMINATE
Auth user and access token might be available – flowType
hasn't been resolved yet.