Basic user model and login authentication :]
This commit is contained in:
parent
a87ed0b0f3
commit
859d2e7a98
8 changed files with 315 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
|||
from pydantic_settings import BaseSettings
|
||||
|
||||
class Settings(BaseSettings):
|
||||
|
||||
app_name: str = "DagemarkBackend"
|
||||
class Settings(BaseSettings):
|
||||
app_name: str = "Backend"
|
||||
|
||||
app_version: str = "0.1"
|
||||
|
||||
|
|
@ -10,7 +10,14 @@ class Settings(BaseSettings):
|
|||
|
||||
debug: bool = True
|
||||
|
||||
secret_key: str = ""
|
||||
|
||||
algorithm: str = ""
|
||||
|
||||
access_token_expire_minutes: int = 10
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
settings = Settings()
|
||||
|
||||
settings = Settings()
|
||||
|
|
|
|||
Loading…
Reference in a new issue