For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.

Swift: Unlink an identity from a user

Examples

Unlink an identity

// retrieve all identities linked to a user
let identities = try await supabase.auth.identities()

// find the google identity
if let googleIdentity = identities.first(where: { $0.provider == .google }) {
  // unlink the google identity
  try await supabase.auth.unlinkIdentity(googleIdentity)
}