You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The react-native-auth0 Expo config plugin is intended to be able to set up Android App Links, but following the instructions to configure it the App Link URL shows in the web browser instead of redirecting back to the app.
Configure an Auth0 tenant that is set up for Android App Links
Run the app and sign in
Expected: able to sign in
Actual: redirect URL shows in the web browser instead
Additional context
I was able to get login working by using the following custom Expo config plugin instead of the official react-native-auth0 Expo config plugin. My custom plugin configures manifest placeholders. As I understand it, though, this shouldn't be necessary:
const{ withAppBuildGradle }=require("expo/config-plugins")constwithAuth0=(config,options)=>{config=withCustomAppBuildGradle(config,options)returnconfig}constwithCustomAppBuildGradle=(config,options)=>{returnwithAppBuildGradle(config,(config)=>{// Add the manifestPlaceholders to support our app link// https://github.com/auth0/react-native-auth0?tab=readme-ov-file#android-1config.modResults.contents=config.modResults.contents.replace(`minSdkVersion rootProject.ext.minSdkVersion`,`manifestPlaceholders = [auth0Domain: "${options.domain}", auth0Scheme: "https"] minSdkVersion rootProject.ext.minSdkVersion`,)returnconfig})}module.exports=withAuth0
You can try this and see it work in the repro by replacing the "react-native-auth0" plugin with "./withAuth0.js". Video:
Checklist
Description
The react-native-auth0 Expo config plugin is intended to be able to set up Android App Links, but following the instructions to configure it the App Link URL shows in the web browser instead of redirecting back to the app.
Reproduction
Additional context
I was able to get login working by using the following custom Expo config plugin instead of the official
react-native-auth0Expo config plugin. My custom plugin configures manifest placeholders. As I understand it, though, this shouldn't be necessary:You can try this and see it work in the repro by replacing the
"react-native-auth0"plugin with"./withAuth0.js". Video:react-native-auth0 version
5.0.0-beta.3
React Native version
0.79.2
Expo version
53.0.9
Platform
Android
Platform version(s)
16
Videos
auth0-plugin.webm
custom-plugin.webm