From d75514640d32d9ee6d70952f1d246ef25ce79c4a Mon Sep 17 00:00:00 2001 From: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:01:47 -0400 Subject: [PATCH] Add info about how to access SessionWithActivities object (#1543) Co-authored-by: victoria --- .../javascript/session-with-activities.mdx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/references/javascript/session-with-activities.mdx b/docs/references/javascript/session-with-activities.mdx index 6e58872d41..281f475e6f 100644 --- a/docs/references/javascript/session-with-activities.mdx +++ b/docs/references/javascript/session-with-activities.mdx @@ -3,11 +3,11 @@ title: '`SessionWithActivities`' description: The 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 `SessionWithActivities` object is a modified [`Session`][session-ref] object. It contains most of the information that the [`Session`][session-ref] object stores, adding extra information about the current session's latest activity. +The `SessionWithActivities` object is a modified [`Session`](/docs/references/javascript/session) object. It includes most of the information stored in the `Session` object, with additional details about the latest activity in the current session. `SessionWithActivities` is returned by the [`User.getSessions()`](/docs/references/javascript/user/user#get-sessions) method. -The additional data included in the latest activity are useful for analytics purposes. A [`SessionActivity`](#session-activity) object will provide information about the user's location, device and browser. +The additional data included in the latest activity is useful for analytics purposes. A [`SessionActivity`](#session-activity) object provides information about the user's location, device and browser. -While the `SessionWithActivities` object wraps the most important information around a [`Session`][session-ref] object, the two objects have entirely different methods. +While the `SessionWithActivities` object wraps the most important information around a `Session` object, the two objects have entirely different methods. ## Properties @@ -29,7 +29,7 @@ While the `SessionWithActivities` object wraps the most important information ar - `lastActiveAt` - `Date` - The time the session was last active on the [`Client`][client-ref]. + The time the session was last active on the [`Client`](/docs/references/javascript/client). --- @@ -124,7 +124,3 @@ function revoke(): Promise Will be set to `true` if the session activity came from a mobile device. Set to `false` otherwise. - -[client-ref]: /docs/references/javascript/client - -[session-ref]: /docs/references/javascript/session