feat: jwt过期时间以s为单位

This commit is contained in:
martsforever
2025-08-22 17:11:26 +08:00
parent 44f35e7204
commit fc3909a08a
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ class Settings(BaseSettings):
jwt_secret_key: str = Field(..., env="JWT_SECRET_KEY")
jwt_algorithm: str = Field(..., env="JWT_ALGORITHM")
jwt_access_token_expire_minutes: int = Field(..., env="JWT_ACCESS_TOKEN_EXPIRE_MINUTES")
jwt_refresh_token_expire_minutes: int = Field(..., env="JWT_REFRESH_TOKEN_EXPIRE_MINUTES")
jwt_access_token_expire_seconds: int = Field(..., env="JWT_ACCESS_TOKEN_EXPIRE_SECONDS")
jwt_refresh_token_expire_seconds: int = Field(..., env="JWT_REFRESH_TOKEN_EXPIRE_SECONDS")
jwt_global_enable: bool = Field(..., env="JWT_GLOBAL_ENABLE")
jwt_white_list: List[str] = Field(..., env="JWT_WHITE_LIST")