Commit d3a0de6
committed
fix(repo): Handle framework query param in Next.js keyless test
Update the Next.js keyless integration test to verify that claim URLs
include the framework=nextjs query parameter.
This aligns with backend changes that add framework query params to
claim URLs for dashboard analytics and proper routing.
Changes:
- Check for 'framework=nextjs' in sign_in_force_redirect_url
- Check for 'framework=nextjs' in sign_up_force_redirect_url (both regular and prepare-account cases)
- Use .includes() instead of .startsWith() for more flexible URL validation
- Properly handle URL-encoded framework parameter in prepare-account flow
Test coverage:
✅ Sign-in redirect URL contains framework=nextjs
✅ Sign-up redirect URL contains framework=nextjs (regular case)
✅ Sign-up redirect URL contains framework=nextjs (prepare-account case)
✅ All other claim URL parameters (token, dashboard URL) still validated1 parent bca677e commit d3a0de6
1 file changed
Lines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
100 | 112 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 113 | + | |
106 | 114 | | |
107 | 115 | | |
108 | 116 | | |
| |||
0 commit comments