Skip to content

Add delete login methods on all identity providers #4068

Open

Description

@marcelomendoncasoares

Our identity provider implementations currently lack a way to remove a specific identity provider login - like removing just an email account or just a passkey account from a user. This could be a feature either for the user to unlink a specific provider from its account or for the admin to remove a specific login for a user.

The current implementation only provides:

  1. Admin methods for cleanup operations (expired requests, failed attempts, etc.) in EmailAccountsAdmin and PasskeyAccountsAdmin.
  2. Database-level cascade deletion when the entire user is deleted, which deletes all linked identity providers (email accounts, passkey accounts, Apple accounts, etc.).

It is possible to manually delete specific identity providers directly on the database - and, thus, create custom endpoints for such -, but it would be a good addition to have these endpoints available on each provider natively.

// Manual deletion example
await EmailAccount.db.deleteWhere(
  session,
  where: (t) => t.authUserId.equals(userId) & t.email.equals(email),
);

Activity

  1. added
    area: authentication
    on Oct 16, 2025
  2. moved this from Inbox 📫 to Planned 🔭 in Serverpod Frameworkson Oct 16, 2025
  3. moved this from Planned 🔭 to Next Up 🎯 in Serverpod Frameworkson Oct 16, 2025
  4. moved this from Next Up 🎯 to Planned 🔭 in Serverpod Frameworkson Oct 16, 2025
  5. added
    enhancement
    on Oct 16, 2025
  6. moved this from Planned 🔭 to Backlog 🗂️ in Serverpod Frameworkson Oct 16, 2025
  7. added this to the 3.0 Release milestone on Oct 16, 2025
  8. moved this from Backlog 🗂️ to Planned 🔭 in Serverpod Frameworkson Oct 24, 2025
  9. moved this from Planned 🔭 to Backlog 🗂️ in Serverpod Frameworkson Oct 24, 2025
  10. moved this from Backlog 🗂️ to Planned 🔭 in Serverpod Frameworkson Nov 14, 2025
  11. moved this from Planned 🔭 to Backlog 🗂️ in Serverpod Frameworkson Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authenticationenhancement

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions