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:
+11
-5
@@ -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/*"
|
||||
Reference in New Issue
Block a user