## Problem
Account Security groups an email address and its password into one
identity row. The disabled unlink control suggests password removal is
temporarily unavailable, even though passwords can be changed but not
removed.
## Solution
Separate email address management from password management:
```text
Sign-in methods
Email address [edit]
Password Configured [edit]
GitHub / ChatGPT [unlink]
```
- Accounts without a password get a Password row with an “Add” action
that opens the existing setup form
- Single-provider accounts retain the recovery warning, with the row now
owning the only “Add” action
- Existing MFA and recovery-code action priority is preserved
- Use distinct icons for password, SSO and generic providers, and
consistent edit/unlink controls (which resolves DEPR-715)
| After: GitHub Only | After: Password |
| --- | --- |
| <img width="1510" height="1554" alt="CleanShot 2026-11-16 at 13 29
21@2x"
src="https://github.com/user-attachments/assets/f71b86a1-81aa-4b4f-a64f-174c3550db73"
/> | <img width="1498" height="1358" alt="CleanShot 2026-11-16 at 13 29
57@2x"
src="https://github.com/user-attachments/assets/e36f2ed4-b580-4126-87b7-a655f4333427"
/> |
| After: Icon Refinment |
| --- |
| <img width="1570" height="846" alt="64227"
src="https://github.com/user-attachments/assets/556ff03c-a806-4c27-9ba8-b74992f4fe0d"
/> |
| <img width="1454" height="392" alt="CleanShot 2026-11-16 at 13 42
02@2x"
src="https://github.com/user-attachments/assets/c4215446-13aa-40d2-9e26-c7ae0f071395"
/> |
## Review instructions
Open [Account → Security
locally](http://localhost:8082/account/security) with Studio running
(`pnpm dev:studio`). Vercel marked the Studio deployment as ignored for
this PR, so no deploy preview is available.
1. **Account with a password:** check that Email address and Password
are separate rows. Password shows “Configured”. Hover or focus the
pencil buttons to see “Update email address” and “Change password”. The
password pencil opens the existing change-password page. Neither row
offers unlink.
2. **OAuth-only account, with `enableAccountPassword` enabled:** check
the Password row has an **Add** button. With one OAuth provider, the
warning appears above the rows but has no duplicate button. Click Add:
the existing password form shows the account email. Cancel and reopen
it. If using a disposable account, save a valid password and check that
the row changes to “Configured”.
3. **Linked external identity:** check that Unlink uses the same button
shape as the edit controls and still opens the confirmation. Cancel it.
4. **SSO account, if available:** check the briefcase icon and “Managed
by your organization”. Password setup must not be offered.
5. Repeat the row and action checks at phone width. Labels, addresses
and actions should remain visible.
## Problem
In Account Preferences, the option to add a password looks like an email
sign-in method that is already set up.
## Solution
- Make configured sign-in methods easier to scan, with consistent rows,
icons and edit controls.
- Put **Add password** above the list as a separate suggestion. If
GitHub is your only way to sign in, explain how a password gives you a
backup. The Email row appears after you set a password.
This PR updates the existing section in Preferences and can merge on its
own. #52358 moves the section to Security and decides which action to
emphasise across sign-in, MFA and recovery codes.
| After |
| --- |
| <img width="744" height="294" alt="Security Account Supabase"
src="https://github.com/user-attachments/assets/f11d102f-58a3-4d8b-88fd-d03b51b40c0f"
/> |
| _User with GitHub only._
| <img width="1442" height="484" alt="CleanShot 2026-11-09 at 13 09
00@2x"
src="https://github.com/user-attachments/assets/885537d3-6b01-47dc-95f9-d545b7f8f249"
/> |
| _When a user has both GitHub and email sign-in, and a password
attached to that email address._ |
| <img width="1432" height="390" alt="CleanShot 2026-11-09 at 13 08
43@2x"
src="https://github.com/user-attachments/assets/f2d6f635-43f9-47ea-92cd-09d6c216f7bd"
/> |
| _SSO user._ |
## Review instructions
1. Open [Sign-in
methods](https://studio-staging-git-dnywh-recovery-signin-polish-supabase.vercel.app/dashboard/account/me#sign-in-methods)
with an OAuth-only test account. Check the password suggestion sits
above the configured methods.
2. On a disposable account, add a password. Check the Email row appears
and the email-edit tooltip opens above its button. Linking a provider
should still return you to Preferences.
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
## 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.
## Context
This is largely just a mechanical change here:
Opting to use lucide icons with the `Icon` suffix across all icon
imports within `studio`
- so that it’s clearer which components are icons + reduces the
possibility of name collision with our own components
- e.g <User /> vs <UserIcon />
Also added a eslint rule for this:
<img width="1069" height="167" alt="image"
src="https://github.com/user-attachments/assets/7f36f443-5ca2-4bf6-8d22-86e774513bfc"
/>
And updated `AGENTS.md` as such:
```
Icons come from `lucide-react`, always imported with the `Icon` suffix (`import { CheckIcon, Trash2Icon } from 'lucide-react'`) — never the bare names (`Check`) or `Check as CheckIcon` aliases (lint-enforced).
```
## What kind of change does this PR introduce?
Bug fix / design-system alignment for the legacy `Button` from `ui`.
## What is the current behavior?
Omitting `variant` on the legacy `Button` falls back to brand-green
`primary`. That makes accidental greens easy, and it is hard to spot the
real main action on busy pages.
## What is the new behavior?
- Legacy `Button` now defaults to neutral `default`
- Intentional primary CTAs (create, save, submit, marketing CTAs, and
matching `ButtonTooltip` usages) now set `variant="primary"` so their
appearance is unchanged
- Neutral actions that previously relied on the old fallback (cancel,
close, back, dashboard nav, and similar) become grey/white
- Design-system docs updated; regression tests cover the new default
`Button_Shadcn_` is unchanged. It already uses its own CVA default.
This is PR 1 of 2 in a stack. PR 2 drops now-redundant
`variant="default"` props.
## To test
Studio (http://localhost:8082):
- `/sign-in`: Sign in stays green
- Open a project → Database → Tables: New table stays green
- Auth → Users → Invite: Invite user stays green; Cancel / dismiss
controls stay neutral
- Project Settings → General: edit a field so Cancel and Save appear.
Cancel is neutral, Save is green
Design system (http://localhost:3003):
- Components → Button: default demo is neutral; primary demo is green;
featured preview is the default variant
Marketing (optional):
- www header: Start your project stays green; logged-in Dashboard is
neutral
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Style**
- Buttons now default to a neutral style, while primary actions across
Studio, documentation, marketing pages, forms, dialogs, and error states
use prominent primary styling.
- Updated button examples and previews clarify the distinction between
default and primary variants.
- Event registration now includes a directional arrow icon.
- **Tests**
- Added coverage confirming default button styling and explicit primary
styling behave as expected.
- Updated related test fixtures to use primary styling where
appropriate.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.
YES
## What kind of change does this PR introduce?
Improve toggle accessibility and `aria-label` for screen readers.
## What is the current behavior?
Toggles have no accessible name or description because FormItemLayout is
not properly linked to the Switch.
An `aria-label` was missing.
## What is the new behavior?
An `aria-label` and IDs have been added to associate the label with the
switch and make the toggles accessible to screen readers.
## Additional context
No visual changes have been made.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Accessibility**
* Improved screen reader labels for password visibility controls.
* Linked preference labels with their corresponding toggle controls.
* Added descriptive identifiers to telemetry, dashboard, and hotkey
settings for easier navigation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Allows a user to add a password which automatically creates and email
identity to enable email + password authentication for OAuth-only
accounts.
Gated behind a feature flag: `enableAccountPassword`
When a user does not have an email identity, allow them to set a
password:
<img width="762" height="284" alt="Screenshot 2026-08-13 at 14 52 53"
src="https://github.com/user-attachments/assets/70b4883a-ed38-488a-a1b7-908caa112a0b"
/>
Password modal:
<img width="519" height="423" alt="Screenshot 2026-08-13 at 14 56 57"
src="https://github.com/user-attachments/assets/56ac370d-9e6c-4b05-986f-3aa9a51826c2"
/>
Email identity has been created, allow unlinking and/or updating email
address or password:
<img width="764" height="285" alt="Screenshot 2026-08-13 at 14 55 04"
src="https://github.com/user-attachments/assets/5d9d7692-f4e3-4638-958d-15fefad01333"
/>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* OAuth-only accounts can set a password from Sign-in methods.
* Added password visibility controls, validation guidance, and success
or error feedback.
* Sign-in methods display the account email when available.
* **Updates**
* Renamed “Account identities” to “Sign-in methods” throughout account
preferences.
* Standardized password requirements across password setup and reset
forms.
* Setting a password refreshes the current session and signs out other
sessions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->