feat(authentication): 实现用户空闲超时自动登出功能

This commit is contained in:
zhang1106
2026-02-11 10:21:32 +08:00
parent e55031f8cc
commit 7e8ba6fb60
6 changed files with 263 additions and 4 deletions
+7
View File
@@ -0,0 +1,7 @@
# 用户空闲超时配置(毫秒)
# 默认30分钟 = 30 * 60 * 1000 = 1800000
VITE_IDLE_TIMEOUT=1800000
# 超时前警告时间(毫秒)
# 默认1分钟 = 60 * 1000 = 60000
VITE_IDLE_WARNING_TIME=60000