Automated Action 91405a6195 Implement authentication service with FastAPI and SQLite
- Setup project structure and dependencies
- Create SQLite database with SQLAlchemy models
- Initialize Alembic for database migrations
- Implement JWT-based authentication utilities
- Create API endpoints for signup, login, and logout
- Add health check endpoint
- Implement authentication middleware for protected routes
- Update README with setup and usage instructions
- Add linting with Ruff
2025-05-17 17:33:29 +00:00

16 lines
251 B
Python

from pydantic import BaseModel
class Token(BaseModel):
"""Token schema for API responses."""
access_token: str
token_type: str
class TokenPayload(BaseModel):
"""Token payload schema for JWT tokens."""
sub: int | None = None