Unlinks an identity from a user by deleting it. The user will no longer be able to sign in with that identity once it's unlinked.
unlinkIdentity()
.// retrieve all identites linked to a user
const identities = await supabase.auth.getUserIdentities()
// find the google identity
const googleIdentity = identities.find(
identity => identity.provider === 'google'
)
// unlink the google identity
const \{ error \} = await supabase.auth.unlinkIdentity(googleIdentity)