nuxt-x-app-admin
Users Sessions
Active session table with browser/OS detection, per-session revoke, and bulk revoke-all.
Users Sessions
Active session table with browser/OS detection, per-session revoke, and bulk revoke-all.
Components
<XAdminUsersSessions />
Props, events, and behaviour reflect the actual <script setup> of XAdmin/Users/Sessions.vue in @xenterprises/nuxt-x-app-admin.
<XAdminUsersSessions />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
userId | String | null | Scope to a single user; null lists all sessions. |
endpoint | String | 'admin/users/sessions' | API endpoint for the sessions list. |
currentSessionId | String | null | Active session ID; rendered with 'Current' badge. |
searchable | Boolean | true | Show search input. |
paginated | Boolean | true | Enable client-side pagination. |
pageSize | Number | 20 | Items per page. |
showRevokeAll | Boolean | true | Show 'Revoke all sessions' action. |
Emits
| Event | Payload | Description |
|---|---|---|
revoke | varies | Fired after a single session is revoked. |
revoke-all | varies | Fired after all sessions are revoked. |
AI Context
component: XAdminUsersSessions
package: "@xenterprises/nuxt-x-app-admin"
category: Users
source: app/components/XAdmin/Users/Sessions.vue
use-when: Active session table with browser/OS detection, per-session revoke, and bulk revoke-all.
