API Users wit Cookies

Sorry for the wrong branch
This commit is contained in:
Rudi committed 2026-08-28 15:39:59 +02:00
1 parent 8b70ed1550
commit a36749d788
15 files changed
+494 -2

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# /schemas/auth.py
from pydantic import BaseModel
class LoginRequest(BaseModel):
username: str
password: str
class TokenData(BaseModel):
user_id: int | None = None
class AuthResponse(BaseModel):
message: str