Done: every next/return/redirect style parameter on sign-in, sign-up, OAuth consent and the everyday-account flow goes to a same-origin path, and //host, https://host, backslash and encoded forms land on /; one test table lists the hostile inputs for each route. Suggested: torque.
Risks: Breaking legitimate deep links: keep paths with a query string working.
Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.
Done: every
next/return/redirectstyle parameter on sign-in, sign-up, OAuth consent and the everyday-account flow goes to a same-origin path, and//host,https://host, backslash and encoded forms land on/; one test table lists the hostile inputs for each route. Suggested: torque.Risks: Breaking legitimate deep links: keep paths with a query string working.
Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.
Files: src/http/oauth.ts, src/auth/, test/redirect-targets.test.ts