Files
MrleeAdmin/docs/2026-09-03/2-登录Token有效期配置.md
T

14 lines
536 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.
# 登录 Token 有效期配置
## 变更内容
- 增加系统配置“登录Token”,可分别设置 Admin、Web、APP 三端 Access Token 有效期。
- Refresh Token 有效期支持按 Admin、Web、APP 分别设置,默认均为 7 天。
- JWT Redis 会话记录按 Refresh Token 有效期保存,Access Token 过期后可正常刷新。
- APP 请求收到 401 时自动使用 Refresh Token 刷新并重试原请求。
## 默认值
- 三端 Access Token:3600 秒(1 小时)。
- Refresh Token:604800 秒(7 天)。