Skip to content

Commit

Permalink
Fix migration guide to add Android Callback URL in build.gradle (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj authored Aug 16, 2023
1 parent 17866cd commit bcfdb1c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,31 @@ Choose one of the following migration paths depending on your application:
- Run `npx expo prebuild --clean` (any manual changes to Android or iOS folders will be lost)
- Add the new callback URL to Auth0 dashboard
- **If your project is built with Non Expo:**

- To keep things as it is, set `useLegacyCallbackUrl` to true in `authorize` and `clearSession`
- To migrate to new non-custom scheme flow, add the new callback URL to Auth0 dashboard
- Change the manifest placeholders in your app's build.gradle file (typically at android/app/build.gradle):

**Old**

```
android {
defaultConfig {
manifestPlaceholders = [auth0Domain: "YOUR_AUTH0_DOMAIN", auth0Scheme: "${applicationId}"]
}
...
}
```

**New**

Notice the new `.auth0` suffix in auth0Scheme:

```
android {
defaultConfig {
manifestPlaceholders = [auth0Domain: "YOUR_AUTH0_DOMAIN", auth0Scheme: "${applicationId}.auth0"]
}
...
}
```
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

πŸ“š [Documentation](#documentation) β€’ πŸš€ [Getting Started](#getting-started) β€’ ⏭️ [Next Steps](#next-steps) β€’ ❓ [FAQs](https://github.com/auth0/react-native-auth0/blob/master/FAQ.md) β€’ ❓ [Feedback](#feedback)

### ⚠️ Important Migration Notice: v3.0.0

We're excited to announce the release of react-native-auth0 v3.0.0! Please note that this update includes breaking changes that require your attention. To ensure a smooth transition, please review our
πŸ‘‰ [Migration Guide](https://github.com/auth0/react-native-auth0/blob/master/MIGRATION_GUIDE.md) πŸ‘ˆ for detailed instructions on updating your integration.

## Documentation

- [Quickstart](https://auth0.com/docs/quickstart/native/react-native/interactive)
Expand Down

0 comments on commit bcfdb1c

Please sign in to comment.