This demonstrates a minimal working installation of the privy sdk in a fresh expo app. We recommend reading the documentation for a more detailed guide.
-
Install dependencies
npm i
-
Configure an app client in your dashboard, and add your Privy app ID and app client ID in
app.json
... "extra": { "privyAppId": "<your-app-id>", "privyClientId": "<your-client-id>" } ...
-
Configure your application identifier in
app.json
. This should match the bundle identifier for your app in the app store.... "ios": { "bundleIdentifier": "com.example.myapp" }, "android": { "package": "com.example.myapp" } ...
-
If you are making use of passkeys, ensure that you have an associated website for your application. Once you have this your
app.json
should be updated as follows:... "associatedDomains": ["webcredentials:<your-associated-domain>"], ... "extra": { ... "passkeyAssociatedDomain": "https://<your-associated-domain>" }, ...
# expo go
npx expo start
# ios
npx expo run:ios
# android
npx expo run:android