feat(auth): add learner device sessions with a 2-device limit #2

Open
naol-yaltopia wants to merge 1 commits from feat/device-sessions into fix/refresh-token-rotation
  • Track learner sessions and revoke them immediately on every request
  • Add a device replacement challenge for logins over the limit
  • Add learner and admin endpoints to list and remove devices
  • Trim excess sessions when enforcement is enabled
  • Stop logging refresh tokens and authorization headers

Enforcement is off by default through DEVICE_LIMIT_ENFORCED.

- Track learner sessions and revoke them immediately on every request - Add a device replacement challenge for logins over the limit - Add learner and admin endpoints to list and remove devices - Trim excess sessions when enforcement is enabled - Stop logging refresh tokens and authorization headers Enforcement is off by default through DEVICE_LIMIT_ENFORCED.
naol-yaltopia added 1 commit 2026-11-23 18:15:50 +03:00
- Track learner sessions and revoke them immediately on every request
- Add a device replacement challenge for logins over the limit
- Add learner and admin endpoints to list and remove devices
- Trim excess sessions when enforcement is enabled
- Stop logging refresh tokens and authorization headers

Enforcement is off by default through DEVICE_LIMIT_ENFORCED.
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/device-sessions:feat/device-sessions
git checkout feat/device-sessions

Merge

Merge the changes and update on Gitea.
git checkout fix/refresh-token-rotation
git merge --no-ff feat/device-sessions
git checkout fix/refresh-token-rotation
git merge --ff-only feat/device-sessions
git checkout feat/device-sessions
git rebase fix/refresh-token-rotation
git checkout fix/refresh-token-rotation
git merge --no-ff feat/device-sessions
git checkout fix/refresh-token-rotation
git merge --squash feat/device-sessions
git checkout fix/refresh-token-rotation
git merge --ff-only feat/device-sessions
git checkout fix/refresh-token-rotation
git merge feat/device-sessions
git push origin fix/refresh-token-rotation
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: RezinaLMS/RezinaLMS-BackEnd#2
No description provided.