diff --git a/api/kiwi_vpn_api/config.py b/api/kiwi_vpn_api/config.py index 31c3add..5a2b3d2 100644 --- a/api/kiwi_vpn_api/config.py +++ b/api/kiwi_vpn_api/config.py @@ -77,7 +77,7 @@ class JWTConfig(BaseModel): @classmethod def ensure_secret(cls, value: str | None) -> str: if value is None: - return token_hex(32) + return token_urlsafe(128) return value