- Create User model with bcrypt password hashing - Add auth routes: register, login, refresh, me - Implement JWT access and refresh tokens - Add get_current_user dependency for protected routes - Update Task model with user_id foreign key for data isolation - Update TaskService to filter tasks by authenticated user - Add auth configuration (secret key, token expiry)
6 lines
165 B
Python
6 lines
165 B
Python
from .models import User
|
|
from .routes import router as auth_router
|
|
from .dependencies import get_current_user
|
|
|
|
__all__ = ["User", "auth_router", "get_current_user"]
|