Skip to content

Commit

Permalink
Update example/readme with clearer steps for setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kailash-b committed Jan 24, 2025
1 parent bd3b3fa commit 6f374f3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 1 addition & 5 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ The application will be built and launched on the specified platform, allowing y
### To run on different Auth0 Application

1. Change the `clientId` and `domain` value in `example/src/auth0-configuration.js`
2. For Android, Change the `auth0Domain` value in `example/android/app/build.gradle`

```
manifestPlaceholders = [auth0Domain: "YOUR_DOMAIN_HERE", auth0Scheme: "${applicationId}"]
```
2. For Android, Change the `android:host` values in `example/android/app/src/main/AndroidManifest.xml`
4 changes: 2 additions & 2 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
<category android:name="android.intent.category.BROWSABLE" />

<data
android:host="venkat-desu.us.auth0.com"
android:host="auth0-domain"
android:pathPrefix="/android/${applicationId}/callback"
android:scheme="${applicationId}.auth0" />
<data
android:host="brucke.auth0.com"
android:host="auth0-domain"
android:pathPrefix="/android/${applicationId}/callback"
android:scheme="${applicationId}.auth0" />
</intent-filter>
Expand Down
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ const SecondScreen = () => {
const SecondScreenProvider = () => {
return (
<Auth0Provider
domain="venkat-desu.us.auth0.com"
clientId="Wy9qORYVTokJFuJsvbXa2JJ6dDQhBGzI"
domain={config.domainSecondScreen}
clientId={config.clientIdSecondScreen}
>
<SecondScreen />
</Auth0Provider>
Expand Down
6 changes: 4 additions & 2 deletions example/src/auth0-configuration.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const config = {
clientId: 'u7KBoASmHOpIFqwp77tmGRHnUVaMupBj',
domain: 'brucke.auth0.com',
clientId: 'your-client-id',
domain: 'your-domain',
clientIdSecondScreen: 'your-client-id',
domainSecondScreen: 'your-domain',
};

export default config;

0 comments on commit 6f374f3

Please sign in to comment.