这是indexloc提供的服务,不要输入任何密码
Skip to content

Acaishiba/expo-starter

 
 

Repository files navigation

Privy Expo Starter

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.

Setup

  1. Install dependencies

    npm i
  2. 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>"
     }
    ...

    If you are using Expo go, be sure to add host.exp.Exponent to Allowed app identifiers under app clients in your Dashboard

  3. 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"
     }
    ...
  4. 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>"
     },
    ...

Run the app

# expo go
npm run start

# ios
npm run ios

# android
npm run android

About

Demonstrates usage of the privy expo sdk in an expo project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.6%
  • JavaScript 1.4%