AuthSession - AckeeCZ/petrus GitHub Wiki

Enumeration: AuthSession

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) and AUTH_SESSION_RESUME (access token refreshment has been completed) actions
    • Access token is only valid in this state.
  • PAUSED - set by AUTH_SESSION_PAUSE (access token refreshment has started)
  • INACTIVE - set by AUTH_SESSION_END action (user logouts, token refreshment fails)

Table of contents

Enumeration Members

Enumeration Members

ACTIVE

ACTIVE

Defined in

src/constants/index.ts:17


INACTIVE

INACTIVE

Defined in

src/constants/index.ts:19


PAUSED

PAUSED

Defined in

src/constants/index.ts:18