Python: Unlink an identity from a user

Parameters

Examples

Unlink an identity

# retrieve all identites linked to a user
res = supabase.auth.get_user_identities()

# find the google identity 
google_identity = list(
  filter(lambda identity: identity.provider == "google", res.identities)
).pop()

# unlink the google identity
response = supabase.auth.unlink_identity(google_identity)