Setup passkeys
To see an example application that has the Privy Expo SDK configured with passkeys, check out our Expo starter repo!
0. Ensure you have configured a custom build configuration
If you have not already configured a custom build configuration, follow the custom build configuration guide.
1. Install additional peer dependencies
2. Update native app settings
Passkeys require that you associate a website with your app. To do so, you need to have the associated domain file on your website and the appropriate entitlement in your app.
1. Apple App Site Association
- Create a
JSON
file with at least the following content
- Make the file accessible on your website at the following path
Make sure to use your teamID
and bundleID
in the file hosted on your website.
For more information about supporting associated domains see Apple’s documentation.
2. App configuration
Next, update your app.json
(or app.config.ts
) to include the associatedDomains
and deploymentTarget
like so:
3. Build
Lastly, build your app!
Passkeys require that you associate a website with your app. To do so, you need to have the associated domain file on your website and the appropriate entitlement in your app.
1. Apple App Site Association
- Create a
JSON
file with at least the following content
- Make the file accessible on your website at the following path
Make sure to use your teamID
and bundleID
in the file hosted on your website.
For more information about supporting associated domains see Apple’s documentation.
2. App configuration
Next, update your app.json
(or app.config.ts
) to include the associatedDomains
and deploymentTarget
like so:
3. Build
Lastly, build your app!
To enable passkey support for your Android app, associate your app with a website that your app owns.
1. Digital Asset Links
- Create a
JSON
file with at least the following content
- Make the file accessible on your website at the following path
Make sure to use your package_name
and sha256_cert_fingerprint
in the file hosted on your website.
For more information on obtaining the sha256_cert_fingerprint
for your app, see the signing report documentation. For more information about generally supporting Digital Asset Links see Google’s documentation.
2. Dashboard
You will also need to add your sha256_cert_fingerprint
to the allowed Android key hashes list in the Settings
tab of the Privy dashboard.
3. App configuration
Next, update your app.json
(or app.config.ts
) to look like:
4. Build
Lastly, build your app!