Skip to content

API Integration for Active Sessions Management #920

@yahyafakhroji

Description

@yahyafakhroji

Summary

Integrate backend APIs for active sessions management. Display all active sessions with device information and allow users to revoke individual sessions or terminate all other sessions. Replace dummy session data with real API calls.

Scope

1. List Active Sessions

Display Data:

  • Device name (browser + OS, e.g., "Chrome on Windows 10")
  • Session ID (to indicate current active session)
  • Location (city, country or IP address)
  • Last used (timestamp/relative time)

Features:

  • Auto-refresh sessions list every 30 seconds
  • Highlight current session (cannot be revoked)
  • Display session status indicator (active/idle)
  • Sort by last used (most recent first)

2. Revoke Individual Session

Features:

  • Confirmation dialog before revoking
  • Show which device will be logged out
  • Immediate removal from list on success
  • Cannot revoke current session
  • Success notification

3. Update Docs

  • Add some documentation around handling your user sessions - good example from CF here

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions