The following example uses useSession() to access the Session object, which has the lastActiveAt property. The lastActiveAt property is a Date object used to show the time the session was last active.
SessionStatus.vue
<scriptsetup>import { useSession } from'@clerk/vue'const { isLoaded,session,isSignedIn } =useSession()</script><template> <divv-if="!isLoaded"><!-- Handle loading state --> </div> <divv-else-if="!isSignedIn"><!-- Handle signed out state --> </div> <divv-else> <p>This session has been active since {{ session.lastActiveAt.toLocaleString() }}</p> </div></template>