mirror of
https://github.com/zhigang1992/examples.git
synced 2026-01-12 09:03:42 +08:00
1.9 KiB
1.9 KiB
Auth0 Example
🚀 How to use
- Install with
yarnornpm install. - Create your own app on Auth0.
- Add the AppSession's auth URL to
Allowed Callback URLson Auth0. - Open
App.jsand replaceauth0ClientIdandauth0Domainwith 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.
Auth0 app settings
Both the auth0ClientId and auth0Domain needs to match your Auth0 app settings.
