We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda9b1d commit d7f87edCopy full SHA for d7f87ed
backend/common/security/jwt.py
@@ -294,7 +294,7 @@ async def jwt_authentication(token: str) -> GetUserInfoWithRelationDetail:
294
user = GetUserInfoWithRelationDetail(**select_as_dict(current_user))
295
await redis_client.setex(
296
f'{settings.JWT_USER_REDIS_PREFIX}:{user_id}',
297
- settings.JWT_USER_REDIS_EXPIRE_SECONDS,
+ settings.TOKEN_EXPIRE_SECONDS,
298
user.model_dump_json(),
299
)
300
else:
backend/core/conf.py
@@ -75,7 +75,6 @@ class Settings(BaseSettings):
75
76
# JWT
77
JWT_USER_REDIS_PREFIX: str = 'fba:user'
78
- JWT_USER_REDIS_EXPIRE_SECONDS: int = 60 * 60 * 24 * 7 # 7 天
79
80
# RBAC
81
RBAC_ROLE_MENU_MODE: bool = True
0 commit comments