A wrapper over the client-side user session, with additional user activity information.
SessionWithActivities object is a modified Session object. It contains most of the information that the
Session object stores, adding extra information about the current session's latest activity.
The additional data included in the latest activity are useful for analytics purposes. A SessionActivity object will provide information about the user's location, device and browser.
SessionWithActivities object wraps the most important information around a
Session object, the two objects have entirely different methods.
A unique identifier for the session.
The current state of the session.
The time the session was last active on the Client.
The time when the session was abandoned by the user.
The time the session expires and will seize to be active.
An object that provides additional information about this session, focused around user activity data.
revoke() => Promise<SessionWithActivitiesResource>
Marks this session as revoked. If this is the active session, the attempt to revoke it will fail.
Users can revoke only their own sessions.
This method accepts no parameters.
This method returns a
A unique identifier for the session activity record.
The name of the browser from which this session activity occurred.
The version of the browser from which this session activity occurred.
The type of the device which was used in this session activity.
The IP address from which this session activity originated.
The city from which this session activity occurred. Resolved by IP address geo-location.
The country from which this session activity occurred. Resolved by IP address geo-location.
Will be set to true if the session activity came from a mobile device, false otherwise.
abandoned | active | ended | expired | removed | replaced | revoked
|abandoned||The session was abandoned client-side.|
|active||The session is valid and all activity is allowed.|
The user signed out of the session, but the
|expired||The period of allowed activity for this session has passed.|
The user signed out of the session and the
The session has been replaced by another one, but the
he application ended the session and the