Commit Graph

10 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 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 d54aeaa61a load dotenv everywhere it's needed; postgresql pool pre ping 2026-05-20 02:21:22 +08:00
Zayden-Jung c68d88b8c1 feat(auth): integrate Google OAuth2 and secure cookie management
- Configured CORS middleware to allow cross-origin requests from the frontend.
- Implemented Google OAuth2 login flow and post-auth frontend redirection.
- Managed secure HTTP-only cookies for access, refresh, and state tokens.
2026-05-19 23:55:03 +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 a073fa5962 pyjwt not jwt 2026-05-19 22:56:04 +08:00
Zayden-Jung af5f7b38f8 auth/ is now an independent package 2026-05-19 22:31:30 +08:00
Zayden-Jung ceea04299a modify the project, everything go under app folder 2026-05-16 20:13:46 +08:00
Zayden-Jung 1c513a2f3e login with JWT 2026-05-15 22:58:53 +08:00