add User return schema
This commit is contained in:
@@ -24,10 +24,9 @@ class DbSettings(BaseModel):
|
||||
|
||||
|
||||
class AccessToken(BaseSettings):
|
||||
model_config = SettingsConfigDict(env_file='.env',
|
||||
env_file_encoding='utf-8',
|
||||
env_prefix="ACCESS_TOKEN_"
|
||||
)
|
||||
model_config = SettingsConfigDict(
|
||||
env_file=".env", env_file_encoding="utf-8", env_prefix="ACCESS_TOKEN_"
|
||||
)
|
||||
expire_minutes: int = 15
|
||||
secret_key: str
|
||||
algorithm: str = "HS256"
|
||||
@@ -40,4 +39,4 @@ class Settings(BaseSettings):
|
||||
|
||||
|
||||
settings = Settings()
|
||||
print(settings.db.url)
|
||||
print(settings.db.url)
|
||||
|
||||
Reference in New Issue
Block a user