Active Sessions Page
Component Detail
User Interface
medium complexity
frontendbackend
2
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Next.js SSR admin page listing all active sessions for users within the administrator's organization. Displays device type, IP address, location hint, and last activity time per session, with individual revoke buttons and a bulk 'Revoke All' action per user.
active-sessions-page
Responsibilities
- Render paginated session list grouped by user with session metadata (device, IP, location, last_seen_at)
- Provide individual session revoke action with confirmation dialog
- Provide bulk revocation action to terminate all sessions for a given user atomically
- Show session status badges (active, recently revoked) with real-time feedback after revocation
- Enforce Org Admin / Global Admin role gate before rendering - redirect unauthorized callers
Interfaces
GET /api/v1/admin/sessions?orgId={id}&userId={id}&page={n}
DELETE /api/v1/admin/sessions/{sessionId}
DELETE /api/v1/admin/sessions?userId={id} (bulk)
Relationships
Dependencies (2)
Components this component depends on