♻️ Require explicit SECRET_KEY (#2425)

## AI Disclaimer

Using Codex with gpt-5.6-sol. Reviewed manually.
This commit is contained in:
Sebastián Ramírez
2026-08-10 22:52:32 +02:00
committed by GitHub
parent b5a664d510
commit 1c5dd70308
+1 -2
View File
@@ -1,4 +1,3 @@
import secrets
import warnings import warnings
from typing import Annotated, Any, Literal, Self from typing import Annotated, Any, Literal, Self
@@ -30,7 +29,7 @@ class Settings(BaseSettings):
extra="ignore", extra="ignore",
) )
API_V1_STR: str = "/api/v1" API_V1_STR: str = "/api/v1"
SECRET_KEY: str = secrets.token_urlsafe(32) SECRET_KEY: str
# 60 minutes * 24 hours * 8 days = 8 days # 60 minutes * 24 hours * 8 days = 8 days
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 8 ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 8
FRONTEND_HOST: str = "http://localhost:5173" FRONTEND_HOST: str = "http://localhost:5173"