refactor(auth): remove legacy RESTful user routes and migrate authentication to GraphQL context

- Rename get_current_user to get_current_user_id in auth/deps.py to clarify intent
- Remove legacy /me, /logout routes, and placeholder function from auth/__init__.py
- Remove dependency_overrides from app/main.py
- Update CustomContext to resolve and cache full User objects via db query
This commit is contained in:
2026-05-20 02:52:54 +08:00
parent d54aeaa61a
commit 9dfe000f2d
6 changed files with 34 additions and 95 deletions
+11 -5
View File
@@ -6,21 +6,27 @@ prompts:
preset:
auth:
- "app/auth.py"
- "app/auth/*"
- "auth/*"
s3:
- "app/models/base.py"
- "app/models/user.py"
- "app/utils/s3.py"
- "app/auth.py"
- "auth.py"
db_model:
- "app/models/*"
- "app/db.py"
# - "app/auth.py"
- "app/main.py"
graphql:
- "app/graphql/*"
- "app/main.py"
- "app/main.py"
get_current_user:
- "app/main.py"
- "auth/__init__.py"
- "auth/deps.py"
- "auth/tokens.py"
- "auth/oauth/google.py"
- "app/graphql/*"