Use the hook useLinkIdToken to link a user account with the provider’s account using an id token

const { linkIdToken, isLoading, isSuccess, isError, error } = useLinkIdToken()

const handleLinkIdToken = async () => {
  await linkIdToken({
    provider: 'google',
    idToken: '...',
    nonce: '...'
  })
}

Use the hook useLinkIdToken to link a user account with the provider’s account using an id token

const { linkIdToken, isLoading, isSuccess, isError, error } = useLinkIdToken()

const handleLinkIdToken = async () => {
  await linkIdToken({
    provider: 'google',
    idToken: '...',
    nonce: '...'
  })
}