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.userIdentities()

// find the google identity
let googleIdentity = identities.first {
  $0.provider == .google
}

// unlink the google identity
try await supabase.auth.unlinkIdentity(googleIdentity)