Expo & React Native -- TypeError: Cannot read property 'hasValidAuth0Instance' of null

Hello,

I am receiving this message when following the set-up steps for a React Native project built with Expo. I have run npx expo prebuild, so I am not using Expo GO, I am using a development build.

Possible Unhandled Promise Rejection (id: 0):
TypeError: Cannot read property ‘hasValidAuth0Instance’ of null

I’ve followed the set up steps from Auth0’s documentation here:

and have ensured my domain and clientId are correct, as well as making sure the bundle identifiers are correct in the app.json.

Seems like others have had this issue, but I haven’t found a clear solution.

1 Like

I have the same issue, but only on iOS so far, if I try on the android simulator it works

I haven’t tried the iOS simulator, and I don’t have a physical android device to try out