Commit 9ae368a
fix(whoop): redirect to NEXT_PUBLIC_APP_URL after OAuth callback
req.url reflects the dev server bind host (0.0.0.0) and forwarded
protocol when proxied through a tunnel, producing broken Location
headers like https://0.0.0.0:3000/whoop?connected=1. Use the
configured public origin instead.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e8e7428 commit 9ae368a
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
0 commit comments