Commit 1b66bad
authored
refactor (#369)
* fix: remove duplicate OAuth callback route registrations in auth.ts
- Removed duplicate nested app.get('/github/callback') that was registered
inside an outer callback handler (caused by a bad merge)
- Removed duplicate nested app.get('/google/callback') same issue
- Removed dead code blocks (stray authUrl + redirect calls outside handlers)
that were left over after the duplicate outer wrappers were stripped
- All routes (/github, /github/callback, /google, /google/callback, /me, /logout)
are now correctly registered at the top level within authRoutes plugin scope
* fix: resolve OAuth CSRF vulnerabilities and add cookie types
---------
Signed-off-by: Roshan Kumar Singh <162692544+roshankumar0036singh@users.noreply.github.com>1 parent 02320c0 commit 1b66bad
2 files changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
186 | | - | |
| 185 | + | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments