32 lines
992 B
Markdown
32 lines
992 B
Markdown
# Auth Session Acceptance Checklist
|
|
|
|
Status: `active`
|
|
Scope: `auth-session`
|
|
Last Updated: `2026-03-30`
|
|
|
|
1) Active user 60 minutes without logout
|
|
- 登录后持续操作 60 分钟,观察 token 多次 /auth/extend 且不会跳登录
|
|
|
|
2) Auto-extend near expiry
|
|
- 人工缩短 token 有效期或等待 exp < 2min
|
|
- 保持操作,确认 /auth/extend 被调用且业务不中断
|
|
|
|
3) Single-flight extend
|
|
- 同时触发 10 个 API 请求
|
|
- 仅出现 1 次 /auth/extend,其余请求自动重放成功
|
|
|
|
4) Idle auto logout at 30 minutes
|
|
- 30 分钟无鼠标/键盘/触摸/滚动且无任何请求
|
|
- 自动退出登录并跳转登录页
|
|
|
|
5) Login notice after idle logout
|
|
- 登录页展示 30 分钟无操作自动退出提示
|
|
|
|
6) Extend failure logout
|
|
- 人为让 token 彻底过期,/auth/extend 返回 401
|
|
- 强制登出并跳登录页,提示登录状态失效
|
|
|
|
7) 403 permission vs disabled
|
|
- 权限不足接口返回 403 时不跳登录
|
|
- /auth/extend 返回 403 时强制登出跳登录
|