React

Linking and unlinking

At the end of this guide, the profile page will list every provider connected to the current user, offer a connect button for each provider that has not been linked yet, and let users disconnect existing identities.

This guide walks you through extending the existing profile controller and page to display social identities, building a SocialIdentitiesController for unlinking, and explaining the linking branch of the SocialAuthController callback that was deferred from the previous guide.

The guide covers:

  • Loading the user's social identities on the profile page
  • A connect button per available provider
  • A disconnect form per linked identity
  • A SocialIdentitiesController.destroy method with last-identity lockout
  • The linking branch of the SocialAuth callback that was deferred from the Sign in guide
Unlock access
Only Plus subscribers can access the documentation
Log in now
Terms & License Agreement