Recommended: JavaScript SDK with React Hooks
For new React apps, we recommend the JavaScript SDK with React Hooks (
@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.This guide is currently React only.
General Setup
Enable Social Account Linking in the dashboard and configure providers.- Go to Login & User Profile settings
- Toggle on “Social Account Linking”
- Configure the providers you wish to offer
- Refer to the provider guides for setup steps
Using our UI
When enabled, the profile view in our UI will display available providers. Users can link and unlink directly from their profile.Using your UI
UseuseSocialAccounts to manage linking and unlinking.
React
Make sure the provider is properly configured in the dashboard (client IDs, secrets, redirect URIs where applicable) before exposing it to users.