diff --git a/backend/app/config.py b/backend/app/config.py index fe274d56..0b1d7f9b 100644 --- a/backend/app/config.py +++ b/backend/app/config.py @@ -7,6 +7,7 @@ class Settings(BaseSettings): API_KEY_NAME: str = "X-API-KEY" SECRET_KEY: str ALGORITHM: str + ENVIRONMENT: str class Config: env_file = ".env" diff --git a/backend/app/dependencies.py b/backend/app/dependencies.py index f8d0a3ca..68a5af09 100644 --- a/backend/app/dependencies.py +++ b/backend/app/dependencies.py @@ -48,7 +48,7 @@ def validate_jwt_token(token: str = Depends(oauth2_scheme)): async def validate_token(token: str = Depends(oauth2_scheme)): - if get_settings().ENV != "local": + if get_settings().ENVIRONMENT != "local": token_data = validate_jwt_token(token) if not token_data: raise HTTPException(