Constructor
# new SessionState(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
SessionStateOptions
|
The options that can be used |
Extends
Members
Methods
# getExpirationSeconds() → {number}
Gets the number of seconds until the active session is valid.
number
# getState() → {LocalStorageSession}
Gets the session state.
# read() → {SessionState}
Reads the current state.
# reset() → {SessionState}
Removes the session details.
# setAuthFlowCompleted(completed) → {SessionState}
Sets the authFlowCompleted indicator.
Parameters:
Name | Type | Description |
---|---|---|
completed |
string
|
The authFlowCompleted indicator. |
# setExpirationSeconds(seconds) → {SessionState}
Sets the number of seconds until the active session is valid.
Parameters:
Name | Type | Description |
---|---|---|
seconds |
number
|
The number of seconds |