Skip to content

Configuring your app ID

To use Privy's Expo SDK, you must first configure a few settings for your Privy App ID in the Privy Dashboard.

Follow the steps below to get started!

1. Request access

To use Privy's Expo SDK, you must first request access to the Expo plugin in the Privy Dashboard.

Go to the Privy Dashboard and select the app you'd like to use with your Expo SDK from the dropdown in the left sidebar. Then, navigate to the Plugins page and request access to the Expo plugin.

Once your request has been received, the Privy team will configure your App ID to be compatible with Expo and native mobile environments.

2. Configure your allowed application IDs

To enforce secure usage of your Privy App ID, you can configure Privy to restrict which mobile apps can use your Privy App ID, based on the mobile applications' application identifiers.


Configuring allowed application IDs for mobile apps is analogous to configuring allowed domains for web apps.

To set this restriction, we'll use the unique value that identifies your app in the Apple App Store or Google Play Store.

First, copy your application identifier from app.config.js or app.json.

  // other config
  "ios": {
    "bundleIdentifier": "" // <┐
  },                                    //  │
                                        //  ├─ your application identifier
  "android": {                          //  │
    "package": "" // <─────────┘

Next, go to the Domains page for your app in the Privy Dashboard, and register the application identifiers you retrieved earlier.

allowed app ids field in privy dashboard

Please note that:

  • Multiple application identifiers can be registered for the same Privy App ID.
  • An empty list will mean all requests from mobile apps are denied. You must configure at least one application identifier to use the Expo SDK with the given Privy App ID.
  • For development only, if you are using Expo Go, enter host.exp.Exponent to allow requests.

3. Configure allowed URL schemes

To use Privy's social login flows (Apple, Google, etc.), you must also register the URL scheme (e.g. myapp://) for your application with Privy.

To do so, copy your application's URL scheme from app.json or app.config.ts and register it within the Domains page for your app in the Privy Dashboard. This configuration is right below the configuration for allowed application IDs, which you just completed.

Please note:

  • Multiple URL schemes can be added for the same Privy App ID.
  • An empty list will mean that requests coming from URL schemes other than web defaults (http and https) will be rejected. You must register at least one URL scheme.
  • For development only if you are using Expo Go, enter exp as the URL scheme for the Expo Go app.
Why is this required?

Certain flows within the Privy authentication process require Privy to register allowed callback URLs with third-party service providers. The plainest example of this is social login flows using the OAuth 2.0 Protocol, where Privy must register allowed callback URLs with Google, Apple, and other OAuth login providers.

Configuring your allowed URL schemes in the Privy Dashboard ensures Privy updates the appropriate settings with these third-party service providers!