The user needs to be signed in to call unlink_identity().
The user must have at least 2 identities in order to unlink an identity.
The identity to be unlinked must belong to the user.
Parameters
identity
(Required)
undefined
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)