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.
unlinkIdentity().currentUser, and emits .userUpdated.currentUser keeps the old identities and no .userUpdated is emitted. Call user() to read the identities again. Do not retry the unlink.// 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)
}