peppa/openspec/changes/pep-95-logout-all/proposal.md
Асель feeeb908e5 PEP-95: peppa web logout-all — every web session issued before the cut-off ends
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 14:00:05 +05:00

10 lines
562 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Proposal: PEP-95 — выкинуть всех пользователей
## Why
Суперадмину нужно, чтобы все зашли заново. Сессия веба — подписанная cookie на 30 дней, отозвать её было нельзя.
## What Changes
- `logoutAllUsers` / `sessionsValidAfter` (core/access.ts, настройка `auth.sessions_after`).
- `currentUser` отклоняет сессию, выданную раньше отметки (выдана = exp − 30 дней).
- CLI `peppa web logout-all`.