Skip to content

Conversation

subhankarmaiti
Copy link
Contributor

This PR adds automatic verification support for Android App Links when using the Expo plugin with customScheme: "https" (or "http").

The plugin now automatically adds android:autoVerify="true" to the intent-filter in the Android manifest when App Links are configured, enabling automatic verification by Android and eliminating the need for users to manually select the Auth0 domain in their device's "Open by default" settings.

Changes

  • Plugin Enhancement: Modified addAndroidAuth0Manifest function in src/plugin/withAuth0.ts to detect when customScheme is set to "https" or "http" and automatically add android:autoVerify="true" to the intent-filter
  • Tests: Added comprehensive test cases to verify:
    • android:autoVerify="true" is added when customScheme is "https"
    • android:autoVerify="true" is added when customScheme is "http"
    • android:autoVerify is NOT added for custom schemes (non-http/https)
  • Documentation: Updated README.md to document the new behavior and inform users that the plugin automatically enables App Links verification

Testing

  • ✅ All existing tests pass
  • ✅ New tests added for App Links auto-verification behavior
  • ✅ Build completes successfully

How to Use

When configuring the Expo plugin for Android App Links, simply set customScheme: "https":

{
  "expo": {
    "plugins": [
      [
        "react-native-auth0",
        {
          "domain": "{DOMAIN}",
          "customScheme": "https"
        }
      ]
    ]
  }
}

Fixes #1354

@subhankarmaiti subhankarmaiti requested a review from a team as a code owner October 22, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android Manifest not Setup to AutoVerify AppLinks in Expo

1 participant