Commit 9187d1e
feat(pav-5): integrate Google OAuth login end-to-end
- Backend: fix callback to use req.session (shared with withSession
middleware) instead of creating separate getIronSession instance,
save userId in session, redirect to frontend instead of returning JSON
- Backend: add FRONTEND_URL env var for post-OAuth redirect
- Frontend: add getGoogleAuthUrl() to authService
- Frontend: wire Google button onClick in login and register pages
- Frontend: create AuthCallback page that detects session and
navigates to /app
- Add AGENTS.md with project rules
- Add design spec and implementation plan docs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dfeb8a4 commit 9187d1e
9 files changed
Lines changed: 405 additions & 55 deletions
File tree
- backend
- src/modules/auth
- docs/superpowers/plans
- frontend/src
- components/login
- pages/auth
- services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 11 | | |
29 | 12 | | |
30 | 13 | | |
31 | 14 | | |
32 | 15 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 16 | | |
40 | 17 | | |
41 | 18 | | |
42 | 19 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 20 | + | |
| 21 | + | |
46 | 22 | | |
47 | 23 | | |
48 | 24 | | |
| |||
62 | 38 | | |
63 | 39 | | |
64 | 40 | | |
65 | | - | |
| 41 | + | |
66 | 42 | | |
67 | 43 | | |
68 | 44 | | |
| |||
74 | 50 | | |
75 | 51 | | |
76 | 52 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
81 | 57 | | |
82 | 58 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 59 | + | |
| 60 | + | |
87 | 61 | | |
88 | 62 | | |
89 | | - | |
90 | | - | |
| 63 | + | |
91 | 64 | | |
92 | 65 | | |
93 | 66 | | |
94 | 67 | | |
95 | 68 | | |
96 | 69 | | |
97 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
98 | 74 | | |
99 | 75 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 76 | + | |
113 | 77 | | |
114 | 78 | | |
115 | 79 | | |
0 commit comments