add login endpoint

This commit is contained in:
IluaAir
2025-09-21 12:08:04 +03:00
parent 8620e9b5a1
commit cd51902313
8 changed files with 41 additions and 21 deletions

View File

@@ -40,18 +40,10 @@ class AccessToken(BaseSettings):
token_type: str = "bearer" # noqa: S105
class RefreshToken(BaseSettings):
model_config = SettingsConfigDict(
env_file=".env", env_file_encoding="utf-8", env_prefix="REFRESH_TOKEN_"
)
secret_key: str
class Settings(BaseSettings):
api: ApiPrefix = ApiPrefix()
db: DbSettings = DbSettings()
access_token: AccessToken = AccessToken() # type: ignore
refresh_token: RefreshToken = RefreshToken() # type: ignore
settings = Settings()