Sessionobject is an abstraction over an HTTP session. It models the period of information exchange between a user and the server.
Sessionobject includes methods for recording session activity and ending the session client-side. For security reasons, sessions can also expire server-side.
end() => Promise<SessionResource>
remove() => Promise<SessionResource>
touch() => Promise<SessionResource>
getToken(options?: GetSessionTokenOptions) => Promise<string>
Promisethat resolves to a
string. The string is the user's session token.
abandoned | active | ended | expired | removed | replaced | revoked