fix(security): adjust resource token duration and refresh strategy

This commit is contained in:
InfinityPacer
2024-10-10 15:43:29 +08:00
parent 55403cd8a8
commit 51391db262
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ class ConfigModel(BaseModel):
# TOKEN过期时间
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 8
# RESOURCE_TOKEN过期时间
RESOURCE_ACCESS_TOKEN_EXPIRE_SECONDS: int = 60 * 10
RESOURCE_ACCESS_TOKEN_EXPIRE_SECONDS: int = 60 * 30
# 时区
TZ: str = "Asia/Shanghai"
# API监听地址