19 lines
308 B
Python
19 lines
308 B
Python
|
from functools import lru_cache
|
||
|
|
||
|
from pydantic_settings import BaseSettings
|
||
|
|
||
|
|
||
|
class Settings(BaseSettings):
|
||
|
auth0_domain: str
|
||
|
auth0_api_audience: str
|
||
|
auth0_issuer: str
|
||
|
auth0_algorithms: str
|
||
|
|
||
|
class Config:
|
||
|
env_file = ".env"
|
||
|
|
||
|
|
||
|
@lru_cache()
|
||
|
def get_settings():
|
||
|
return Settings()
|