Keep social login removal disabled during a developer tool's migration off a managed identity provider until the destination can confirm that the account retains a working email-and-password login. The deciding constraint is access after the change: an imported email address, a linked identity record, and an active browser session are each insufficient evidence that the user can sign in again.
Short answer: read the current identity list before unlinking, exclude the identity being removed, and refuse the change unless at least one usable sign-in method remains. Protect that check and the removal against concurrent changes, then tell the user which methods remain. For a Node.js application, put this rule in the trusted backend; a disabled button cannot enforce an account invariant.
Treat removal as a migration gate.…