feat: first commit, auth

This commit is contained in:
2026-07-24 11:33:56 +07:00
commit 0d7944fdab
43 changed files with 1303 additions and 0 deletions

11
schemas/jwt.py Normal file
View File

@@ -0,0 +1,11 @@
from datetime import UTC, datetime
from pydantic import BaseModel, Field
from schemas.providers import ProvidersType
class JWTPayload(BaseModel):
sub: int = Field(description="User ID")
iss: ProvidersType = Field(description="Issuer")
exp: float = Field(default_factory=lambda: datetime.now(UTC).timestamp())