Files
examples/with-auth0/README.md
2020-06-25 15:22:12 -07:00

1.9 KiB

Auth0 Example

Supports Expo iOS Supports Expo Android Supports Expo Web

🚀 How to use

  • Install with yarn or npm install.
  • Create your own app on Auth0.
  • Add the AppSession's auth URL to Allowed Callback URLs on Auth0.
  • Open App.js and replace auth0ClientId and auth0Domain with your app settings.
  • Run expo start, try it out.

AuthSession callback URL

The AuthSession helps you with browser authentication, without the need of an additional server or website. To use this with Auth0 authentication flows, we need to tell Auth0 that the callback URLs are allowed.

Each Expo user has it's own URL for different projects, the basic structure of this URL is https://auth.expo.io/@your-username/your-expo-app-slug. If you are signed in as awesome-ppl, and your app is called meme-explorer, your URL looks like https://auth.expo.io/@awesome-ppl/meme-explorer.

Read more about AuthSession here

Auth0 app settings

Both the auth0ClientId and auth0Domain needs to match your Auth0 app settings.

Application Settings

📝 Notes