Skip to content

Commit

Permalink
fix: set defaults in some security settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fbraem committed Jul 29, 2023
1 parent 2999c30 commit 7efc49d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/kwai/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ class RedisSettings(BaseModel):
class SecuritySettings(BaseModel):
"""Setting or security."""

access_token_expires_in: int
refresh_token_expires_in: int
jwt_algorithm: str
access_token_expires_in: int = 60 # minutes
refresh_token_expires_in: int = 43200 # 30 days
jwt_algorithm: str = "HS256"
jwt_secret: str
jwt_refresh_secret: str

Expand Down

0 comments on commit 7efc49d

Please sign in to comment.