feat: add JWT authentication and AGENTS.md
This commit is contained in:
15
api/app/schemas/auth.py
Normal file
15
api/app/schemas/auth.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class LoginRequest(BaseModel):
|
||||
password: str = Field(..., min_length=1, max_length=100)
|
||||
|
||||
|
||||
class TokenResponse(BaseModel):
|
||||
access_token: str
|
||||
token_type: str = "bearer"
|
||||
|
||||
|
||||
class ChangePasswordRequest(BaseModel):
|
||||
old_password: str = Field(..., min_length=1, max_length=100)
|
||||
new_password: str = Field(..., min_length=1, max_length=100)
|
||||
Reference in New Issue
Block a user