Skip to content

Commit beb127d

Browse files
committed
Update example/readme with clearer steps for setup
1 parent 22b8853 commit beb127d

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

example/README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,4 @@ The application will be built and launched on the specified platform, allowing y
1616
### To run on different Auth0 Application
1717

1818
1. Change the `clientId` and `domain` value in `example/src/auth0-configuration.js`
19-
2. For Android, Change the `auth0Domain` value in `example/android/app/build.gradle`
20-
21-
```
22-
manifestPlaceholders = [auth0Domain: "YOUR_DOMAIN_HERE", auth0Scheme: "${applicationId}"]
23-
```
19+
2. For Android, Change the `android:host` values in `example/android/app/src/main/AndroidManifest.xml`

example/android/app/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
<category android:name="android.intent.category.BROWSABLE" />
3232

3333
<data
34-
android:host="venkat-desu.us.auth0.com"
34+
android:host="auth0-domain"
3535
android:pathPrefix="/android/${applicationId}/callback"
3636
android:scheme="${applicationId}.auth0" />
3737
<data
38-
android:host="brucke.auth0.com"
38+
android:host="auth0-domain"
3939
android:pathPrefix="/android/${applicationId}/callback"
4040
android:scheme="${applicationId}.auth0" />
4141
</intent-filter>

example/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ const SecondScreen = () => {
109109
const SecondScreenProvider = () => {
110110
return (
111111
<Auth0Provider
112-
domain="venkat-desu.us.auth0.com"
113-
clientId="Wy9qORYVTokJFuJsvbXa2JJ6dDQhBGzI"
112+
domain={config.domainSecondScreen}
113+
clientId={config.clientIdSecondScreen}
114114
>
115115
<SecondScreen />
116116
</Auth0Provider>

example/src/auth0-configuration.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const config = {
2-
clientId: 'u7KBoASmHOpIFqwp77tmGRHnUVaMupBj',
3-
domain: 'brucke.auth0.com',
2+
clientId: 'your-client-id',
3+
domain: 'your-domain',
4+
clientIdSecondScreen: 'your-client-id',
5+
domainSecondScreen: 'your-domain',
46
};
57

68
export default config;

0 commit comments

Comments
 (0)