Skip to content

env vars not loading properly #2

@noahpodgurski

Description

@noahpodgurski

config.py should be

from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    debug: bool = False

    APPLE_PUBLIC_KEYS_URL: str
    APP_BUNDLE_ID: str
    CHALLENGE_EXPIRY_SECONDS: int
    JWT_SECRET: str
    JWT_EXPIRY_SECONDS: int

    class Config:
        env_file = ".env"

settings = Settings()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions