Files
supabase/apps/studio/lib
Joshen Lim 0c95428678 fix(studio): strip auth error and method params when building sign-in redirects (#53598)
## Context

Bit of an odd bug that I happened to come across which I can't remember
how to reproduce from scratch but its a valid issue.

If i try to log in on the sign-in route with `method` and
`error_description` query params in the URL, the `error_description`
param gets carried forward to the next page, which if my account has
MFA, it'll then bounce back to `/sign-in`

`/sign-in?error_description=Unable+to+exchange+external+code%3A+53f8&method=github`

Am opting to strip transient params when building the sign-in redirects

## To test
- [ ] Ensure that you've got an account with MFA
- [ ] Try logging in via this URL
`/sign-in?error_description=Unable+to+exchange+external+code%3A+53f8&method=github`
- [ ] You should be able to land on the sign-in-mfa page with no issue +
no error toasts
2026-11-19 13:10:07 +07:00
..