feat: support configuration of refresh token expiration by environment variable (#12335)

This commit is contained in:
eux 2025-01-04 11:56:44 +08:00 committed by GitHub
commit 1fa66405c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 1 deletions

View file

@ -65,7 +65,7 @@ class TokenPair(BaseModel):
REFRESH_TOKEN_PREFIX = "refresh_token:"
ACCOUNT_REFRESH_TOKEN_PREFIX = "account_refresh_token:"
REFRESH_TOKEN_EXPIRY = timedelta(days=30)
REFRESH_TOKEN_EXPIRY = timedelta(days=dify_config.REFRESH_TOKEN_EXPIRE_DAYS)
class AccountService: