## Problem
- Sign-in methods are in Preferences, separate from MFA and recovery
settings.
- The risk of a single sign-in method (e.g. GitHub, and getting locked
out of that account) isn’t clearly communicated.
## Solution
- Bring sign-in methods, MFA and recovery codes together on the Security
page. If Security is disabled, sign-in methods remain accessible in
Preferences.
- Highlight the most important next step with a primary button. For
example, when MFA is off, “Set up MFA” takes priority over adding a
password.
- Explain the risk of relying on a single sign-in provider, and make it
clear which email address a new password will apply to.
- After connecting a sign-in provider, return users to the settings page
they can access. Links to password setup open the password dialog
directly.
| After |
| --- |
| <img width="1460" height="1426" alt="CleanShot 2026-11-06 at 14 54
23@2x"
src="https://github.com/user-attachments/assets/afb82601-1b6f-43be-9e98-a0edb8d529c8"
/> |
| _The “Sign-in methods” section moved to Account → Security. Note also
the new Admonition regarding the risk of a single (GitHub) sign-in
method._ |
## Review instructions
1. Open
[Security](https://studio-staging-git-dnywh-recovery-security-home-supabase.vercel.app/dashboard/account/security#sign-in-methods).
Check sign-in methods appear above MFA and recovery codes. With MFA off,
“Set up MFA” should be primary.
2. Open Preferences. Sign-in methods should be absent unless Security is
disabled.
3. On a test account, check password setup, email editing and provider
linking. [Open password setup
directly](https://studio-staging-git-dnywh-recovery-security-home-supabase.vercel.app/dashboard/account/security?securityAction=set-password#sign-in-methods),
then cancel and confirm it stays closed.
## Problem
MFA setup and backup status are difficult to scan, and unverified
factors can appear as configured authenticators.
## Solution
- Show only verified authenticators (non-abandoned setup), with a clear
setup state when none are configured.
- Show backup guidance from the shared recovery checks and emphasise the
most relevant MFA action once those checks succeed.
- Align authenticator rows with the existing controls, use removal icons
with tooltips, and prevent removal when recovery-code status cannot be
confirmed.
| Before | After |
| --- | --- |
| <img width="1024" height="759" alt="7693"
src="https://github.com/user-attachments/assets/1deb07ef-91ce-481b-87f6-4baa7b023f94"
/> | <img width="1024" height="759" alt="18215"
src="https://github.com/user-attachments/assets/f17248a2-2001-4d95-ba28-3f16b75af0fb"
/> |
| <img width="1024" height="759" alt="Security Account Supabase"
src="https://github.com/user-attachments/assets/ede61c84-0baa-4139-9773-0953a05cbd94"
/> | <img width="1024" height="759" alt="14038"
src="https://github.com/user-attachments/assets/58ab1a70-0392-4706-8df3-2ba078c5a8ba"
/> |
## Review instructions
1. Open [MFA
settings](https://studio-staging-git-dnywh-recovery-mfa-status-supabase.vercel.app/dashboard/account/security#mfa)
without a verified authenticator. Confirm the setup empty state offers
“Set up MFA”.
2. Use an account with one authenticator and healthy codes. Check the
backup warning, aligned icon row, and remove tooltip.
## Validation
14 focused tests passed, including Auth SDK network responses and failed
recovery-status reads keeping removal unavailable. Formatting passed.
Focused ESLint passed with the locally incompatible TanStack
exhaustive-deps rule disabled; standard lint is blocked by the installed
plugin rejecting the current rule options. Full local typecheck still
reports errors in untouched panel and MCP files; none remain in this
PR's changed files.
## Problem
Account checks need consistent query gating and recovery-gap evaluation.
Sign-in and sign-out already reset the query cache; user-scoped keys add
defence in depth.
## Solution
Tie account query caches to the signed-in person, honour query gating,
and centralise recovery-gap evaluation. No layout changes.
## Review instructions
1. Open [Account
Security](https://studio-staging-git-dnywh-recovery-account-queries-supabase.vercel.app/dashboard/account/security)
in staging, or `/account/security` locally. Sign in with a test account
that has MFA enabled; confirm its authenticators and recovery-code
status load normally.
2. Sign out and sign in as a different test account with a different MFA
setup. Confirm the page shows that account’s setup, without the previous
account’s authenticators or code status.
3. Reload with MFA enabled and complete the sign-in challenge. Account
Security should load normally after verification.