feat: authentication

This commit is contained in:
Leon
2025-07-19 10:12:11 +02:00
parent 95170e7201
commit 6f7503039d
57 changed files with 1405 additions and 244 deletions

View File

@@ -27,6 +27,13 @@ class Settings(BaseSettings):
mark_as_read: bool = False
email_check_interval: int = 15
auto_add_new_senders: bool = False
auth_username: str | None = None
auth_password: str | None = None
secret_key: str = Field(
..., validation_alias=AliasChoices("SECRET_KEY", "LETTERFEED_SECRET_KEY")
)
algorithm: str = "HS256"
access_token_expire_minutes: int = 30
settings = Settings()