Listing linked accounts
getUserSocialAccounts returns the user’s currently linked social credentials, derived from user.verifiedCredentials filtered to OAuth-format entries.
- JavaScript
- React
Linking a new account
To attach an additional provider to a signed-in user, use the samesignInWithSocialRedirect flow as sign-in. When called by an authenticated user, it adds the new credential rather than starting a new session.
Unlinking an account
unlinkSocialAccount removes a single linked credential identified by verifiedCredentialId (read it from getUserSocialAccounts).
- JavaScript
- React
Supported providers
TheSocialProvider type covers: apple, discord, facebook, github, google, kraken, linkedin, microsoft, epicgames, steam, tiktok, twitch, twitter.
Each provider must be enabled and configured in the dashboard. See the social providers overview for per-provider setup.
Notes
getUserSocialAccountsrequires an authenticated user — it throws ifuserisundefined. Guard the call by checkingdynamicClient.user(see Check if signed in) oruserfrom React hooks first.- Unlinking does not sign the user out, even when removing their original sign-in provider — provided they have at least one other credential (a wallet or another social account). The API returns a
VerifyResponseupdating the user’s verified credentials. - Linking a new account does not change the user’s primary sign-in method. To change which credential the user authenticates with next time, see the authentication methods overview.
Related functions
- Authenticate with Social — initial OAuth sign-in
- Delete User Account