feat: authentication

This commit is contained in:
Leon
2025-07-19 10:12:11 +02:00
parent 95170e7201
commit 6f7503039d
57 changed files with 1405 additions and 244 deletions

View File

@@ -0,0 +1,14 @@
from pydantic import BaseModel
class Token(BaseModel):
"""Schema for the access token."""
access_token: str
token_type: str
class TokenData(BaseModel):
"""Schema for the data encoded in the JWT."""
username: str | None = None