Skip to main content

Sign up with Social

Sign up/sign in with Apple, Discord, Facebook, Farcaster, Github, Google, Telegram, Twitch or Twitter! Similar to email, you can toggle and configure each social provider in the social providers section of the dashboard. Configuration guides for individual social signup options can be found in the social providers section of the docs. React Native provides social authentication through the dynamic client’s auth methods. You can use the Dynamic UI or customUI for social authentication with full account management capabilities.
Make sure you’ve setup your deeplink URLs correctly. See here.
React Native
import { dynamicClient } from '<path to client file>';
import { ProviderEnum } from '@dynamic-labs/types';

// Using Dynamic UI to trigger social login
dynamicClient.ui.auth.show();

// social connect (example: Farcaster)
await dynamicClient.auth.social.connect({ provider: ProviderEnum.Farcaster });

// Check if a provider is linked
const isGoogleLinked = await dynamicClient.auth.social.isLinked(ProviderEnum.Google);

// Get all linked accounts for a specific provider
const googleAccounts = await dynamicClient.auth.social.getLinkedAccounts(ProviderEnum.Google);

// Get all linked accounts across all providers
const allAccounts = await dynamicClient.auth.social.getAllLinkedAccounts();

// Unlink a social account
await dynamicClient.auth.social.unlink(ProviderEnum.Google);
For a complete example with UI, see the React Native social authentication guide.