Commit Graph

9 Commits

Author SHA1 Message Date
Zayden-Jung d2162f93e0 fix context; decoupling decode_token algo 2026-05-20 15:40:59 +08:00
Zayden-Jung b95cce592f fullfill graphql usertype; change db session to dep injection 2026-05-20 14:40:05 +08:00
Zayden-Jung f3b7fedade feat(graphql): implement secure session refresh mutation with token rotation 2026-05-20 03:10:07 +08:00
Zayden-Jung 9dfe000f2d 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
2026-05-20 02:52:54 +08:00
Zayden-Jung 2b5e193046 auth.py is a duplication of google.py; rename jwt.py -> tokens.py avoid confuse with pyjwt 2026-05-19 23:23:21 +08:00
Zayden-Jung af5f7b38f8 auth/ is now an independent package 2026-05-19 22:31:30 +08:00
Zayden-Jung 419af38684 fix missing type annotations for graphql query field arguments 2026-05-19 02:03:35 +08:00
Zayden-Jung a83befe109 use strawberry dataLoader to solve N+1 query problem 2026-05-19 00:28:04 +08:00
Zayden-Jung 9c55cc675e introduce graphql 2026-05-19 00:24:45 +08:00