Skip to content

Feature: Expose Session and Device Management API #131

Description

@3m1n3nc3

Description

Allow learners to list and revoke their active refresh sessions.

File Location

Session controller/routes/service/schemas and tests

Design Reference

API Roadmap Phase 1: Expose Session and Device Management API.

Dependencies

Tasks

  • List safe device/browser, approximate location, created, last-used, and current markers
  • Revoke one other session and all other sessions
  • Prevent cross-user access and unsafe current-session handling
  • Redact tokens, raw IPs, and excessive fingerprints
  • Audit revocation with stable repeat behavior
  • Test authorization, pagination, redaction, and revocation

Acceptance Criteria

  • Users see/revoke only their sessions
  • No token or raw sensitive identifier is returned
  • Current session behavior is explicit
  • Revocation blocks refresh immediately
  • Tests and OpenAPI pass

Verification Evidence

  • Attach redacted curl and cross-user/revocation tests

Difficulty

Medium

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions