Short answer
Call getUserIdentities() and only offer “Disconnect” when the user has two or more identities. To switch a user from one provider to another, link the new identity with linkIdentity() first, then unlink the old one.
Rather not fix it yourself? App Fix Ticket starts with a fixed-price diagnosis, then a fixed price for the fix before any fix work.
Why the identity can’t be unlinked, and the fix
01
It is the user’s only identity
“Every user must have at least one identity attached to it, so deleting (unlinking) an identity is not allowed if it's the only one for the user.” Supabase docs, Auth error codes (single_identity_not_deletable)
A user who signed up with Google and nothing else has one identity. Unlinking it would leave no way to sign in, so Supabase refuses.
02
The settings screen shows Disconnect for every provider
“The user needs to be signed in and have at least 2 linked identities in order to unlink an existing identity.” Supabase docs, Identity Linking
Hide or disable the Disconnect button when getUserIdentities() returns a single identity, and explain that another sign-in method has to be added first.
const { data } = await supabase.auth.getUserIdentities(); const canUnlink = (data?.identities ?? []).length > 1;03
The new provider was never linked
Moving a user from email to Google means linking Google first with linkIdentity(), which needs manual linking turned on, and only then unlinking the email identity.
04
Unlinking would clash with another account
“Unlinking this identity causes the user's account to change to an email address which is already used by another user account.” Supabase docs, Auth error codes (email_conflict_identity_not_deletable)
Also check: if unlinking would change the account’s email to one another user already has, the error is email_conflict_identity_not_deletable instead.
Checked against the vendor’s docs on : Supabase docs: Auth error codes; Supabase docs: Identity Linking.
Rather hand it over?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- from $450App Fix TicketOne reproducible bug in an existing mobile or web app, diagnosed and fixed.See scope and start
- from $450AI-Built App RescueA Lovable, Bolt or Cursor app checked end to end in 3 days, then its worst problems fixed at a fixed price.No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.See scope and start
“Very responsive, attentive to fixing bugs, and completed the project as needed! Thank you!”
Related: Supabase identity_already_exists · Supabase User already registered · Supabase Signups not allowed · Supabase PGRST116