File size: 468 Bytes
ef1ad9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    """Loads the dotenv file. Including this is necessary to get

    pydantic to load a .env file."""

    LOG_LEVEL: str = "ERROR"
    AUTH0_DOMAIN: str
    AUTH0_API_AUDIENCE: str
    AUTH0_ISSUER: str
    AUTH0_ALGORITHMS: str
    CLIENT_ID: str
    CLIENT_SECRET: str

    class Config:
        env_file = ".env"
        env_file_encoding = "utf-8"


env = Settings()