You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Fix auth redirect message handling so query parameters are encoded once
via `URLSearchParams` instead of manually encoding/decoding values
across server and client code.
This updates the email callback redirect to use the shared
`encodedRedirect()` helper for `message` redirects, preventing crafted
`message` values from injecting sibling query parameters.
## Changes
- Extend `encodedRedirect()` to support `message` redirects.
- Let `URLSearchParams` handle redirect query encoding directly.
- Replace raw email-callback `redirect(...?message=${message}...)` calls
with `encodedRedirect('message', ...)`.
- Remove unnecessary `decodeURIComponent(...)` calls from auth/account
message rendering.
- Add regression coverage for query parameter injection in
`/api/auth/email-callback`.
Closes#255
0 commit comments