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.

JavaScript: linkIdentity

Links an oauth identity to an existing user. This method supports the PKCE flow.

Parameters

Examples

Link an identity to a user

const { data, error } = await supabase.auth.linkIdentity({
  provider: 'github'
})