JavaScript: Link an identity to a user

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'
\})