This commit is contained in:
k00kzaAntonovaIra
2026-11-25 20:16:24 +03:00
parent 20afc2c790
commit 9dcf5b1118
197 changed files with 21197 additions and 182 deletions
+16
View File
@@ -0,0 +1,16 @@
from datetime import datetime
from typing import Literal
from pydantic import BaseModel, ConfigDict, Field
from app.schemas.user import User
class AuthSession(BaseModel):
model_config = ConfigDict(extra="forbid")
token: str = Field(min_length=32)
token_type: Literal["Bearer"] = "Bearer"
expires_at: datetime
user: User