Skip to main content

Overview

Social authentication allows users to sign in to your app using their existing social media accounts. The Dynamic Swift SDK supports multiple providers including Apple, Google, Twitter, Discord, GitHub, and Twitch.

Prerequisites

1. Dynamic Dashboard Configuration

Before implementing social authentication, you must enable and configure the desired providers in your Dynamic dashboard:
  1. Log in to Dynamic Dashboard
  2. Navigate to Log in and User Profile → Social
  3. Enable the providers you want to support
  4. Configure OAuth settings for each provider
Register your app’s redirect URL in the Dynamic dashboard:
  1. Go to Dynamic Dashboard
  2. Navigate to Security → Whitelist Mobile Deeplink
  3. Add your app’s deep link URL (e.g., myapp://auth/callback)
  4. Save the configuration

3. Info.plist Configuration

Add the following to your Info.plist to ensure Safari authentication works properly:

Implementation

Get Available Providers

First, fetch the list of enabled providers for your environment:

Implement Social Login

Provider Types

Troubleshooting

Callback Not Working

  • Verify your app’s URL scheme is configured correctly in Dynamic dashboard
  • Check that redirect URLs match in provider and Dynamic settings

Provider Not Showing

  • Confirm provider is enabled in Dynamic dashboard
  • Check that fetchSocialProviders is called successfully