The following example uses useSessionList() to get a list of sessions that have been registered on the client device. The sessions property is used to show the number of times the user has visited the page.
SessionList.vue
<scriptsetup>import { useSessionList } from'@clerk/vue'const { isLoaded,sessions } =useSessionList()</script><template> <divv-if="!isLoaded"><!-- Handle loading state --> </div> <divv-else> <p>Welcome back. You've been here {{ sessions.length }} times before.</p> </div></template>