Skip to content

feat: teacher login ends on tab close or after 15 min idle - #271

Merged
buzz-code merged 1 commit into
mainfrom
claude/teacher-auto-logout
Nov 17, 2026
Merged

buzz-code merged 1 commit into
mainfrom
claude/teacher-auto-logout

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

Part of buzz-code/ops#69

Summary

  • Teacher view kept the logged-in teacher in the persistent react-admin store, so on a shared computer the next teacher entered as the previous one.
  • TeacherGuard now also requires a per-tab sessionStorage activity stamp. A new tab, or 15 minutes without activity (mousedown/keydown/touchstart/scroll), clears the teacher and shows the ID screen again. The user login itself is untouched.
  • Roadmap entry added.

Test plan

  • New TeacherAccess.test.jsx: closed tab, active session, idle timeout, activity keeps session.
  • yarn test in client: 279 passed.

Generated by Claude Code

Teacher view kept the logged-in teacher in the persistent react-admin
store, so on a shared computer the next teacher entered as the previous
one. TeacherGuard now also requires a per-tab sessionStorage activity
stamp: a new tab or 15 minutes without activity clears the teacher and
shows the ID screen again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GTictXCqjcaSDit3Kb14A
@buzz-code
buzz-code merged commit 90a0064 into main Nov 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants