This feature requires you set up the deeplink URLs whitelist for your Dynamic
app. See step 3 here.
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.Using Dynamic UI
You can trigger Social signup/login using the Dynamic UI simply by calling the method to trigger the signup/login flow:Headless mode
You can prompt a user to sign up/login/link their social accounts with theconnect
method in our social module.
It returns a promise that resolves with no params on success, and rejects on failure.
Here’s how you can connect a user’s farcaster account, for example:
Not only can this method be used to sign a user in, but it is also able to
link a social account to an already signed in user.
Managing linked accounts
You can check, retrieve, and unlink social accounts programmatically using the social module’s methods.Check if a provider is linked
UseisLinked
to check if the user has linked any accounts for a specific provider:
Get linked accounts for a provider
UsegetLinkedAccounts
to retrieve all linked accounts for a specific provider:
Get all linked accounts
UsegetAllLinkedAccounts
to retrieve all linked social accounts across all providers:
Unlink a social account
Useunlink
to remove a linked social account. If the user has multiple accounts linked for the same provider, you can specify which one to unlink using the verifiedCredentialId
:
Adjusting app name in social connection dialogues
Social connection dialogues will derive the name of your app from theappOrigin
prop of the ReactNativeExtension
extension you used to initialize your client — read here.
So in order for your app’s name to be displayed correctly to your user when they are connecting their social accounts,
you need to provide this prop.
You can read more about the social module here.