Spaces:
Runtime error
Runtime error
File size: 341 Bytes
b7ed26f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from pydantic_settings import BaseSettings
import os
from dotenv import load_dotenv
load_dotenv()
class Settings(BaseSettings):
POSTGRES_URI: str
JWT_SECRET_KEY: str = os.getenv("JWT_SECRET_KEY", "default_secret_key")
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
class Config:
env_file = ".env"
settings = Settings() |